|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.hackystat.sensor.ant.task.HackystatSensorTask
org.hackystat.sensor.ant.junit.JUnitSensor
public class JUnitSensor
Implements an Ant task that parses the XML files generated by JUnit and sends the test case results to the Hackystat server. You can specify the location of the source files either through the 'sourcePath' attribute or the 'srcPath' nested element. I agree, this isn't optimal, but I'm going for backward compatibility at the moment. Eventually, we probably want to get rid of the sourcePath attribute option.
Field Summary |
---|
Fields inherited from class org.hackystat.sensor.ant.task.HackystatSensorTask |
---|
dataFilesList, errMsgPrefix, failOnError, msgPrefix, runtime, sensorProps, sensorShell, sourceFilesList, toolAccount, tstampSet, verbose |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
JUnitSensor()
Initialize a new instance of a JUnitSensor. |
|
JUnitSensor(java.lang.String host,
java.lang.String email,
java.lang.String password)
Initialize a new instance of a JUnitSensor, passing the host email, and password directly. |
Method Summary | |
---|---|
void |
executeInternal()
Parses the JUnit XML files and sends the resulting JUnit test case results to the hackystat server. |
int |
processJUnitXmlFile(java.io.File xmlFile)
Parses a JUnit XML file and sends the JUnitEntry instances to the shell. |
Methods inherited from class org.hackystat.sensor.ant.task.HackystatSensorTask |
---|
createDataFiles, createSourceFiles, execute, getDataFiles, getFiles, getSourceFiles, info, isUsingUserMap, sendAndQuit, setFailOnError, setRetryAttempts, setRetryWaitInterval, setupSensorShell, setUserMapTool, setUserMapToolAccount, setVerbose, signalError, summaryInfo, verboseInfo |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnitSensor()
public JUnitSensor(java.lang.String host, java.lang.String email, java.lang.String password)
host
- The hackystat host URL.email
- The Hackystat email to use.password
- The Hackystat password to use.Method Detail |
---|
public void executeInternal() throws org.apache.tools.ant.BuildException
executeInternal
in class HackystatSensorTask
org.apache.tools.ant.BuildException
- If there is an error.public int processJUnitXmlFile(java.io.File xmlFile) throws org.apache.tools.ant.BuildException
xmlFile
- The XML file name to be processed.
org.apache.tools.ant.BuildException
- if any error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |