Package rife.bld.extension
Class JUnitReporterOperation
java.lang.Object
rife.bld.operations.AbstractOperation<T>
rife.bld.operations.AbstractProcessOperation<JUnitReporterOperation>
rife.bld.extension.JUnitReporterOperation
An operation that parses JUnit XML reports and prints test failure information grouped by test class.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Field Summary
Fields inherited from class rife.bld.operations.AbstractProcessOperation
classpath_, DEFAULT_JAVA_TOOL, environment_, errorProcessor_, errorProcessorThread_, javaOptions_, javaTool_, mainClass_, module_, modulePath_, outputProcessor_, outputProcessorThread_, process_, successful_, workDirectory_
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Preforms the operation.Constructs the command list to use for the operation.boolean
Returns whether the operation should fail if the summary is printed.failOnSummary
(boolean failOnSummary) Configures whether the operation should fail if the summary is printed.fromProject
(BaseProject project) Configures the operation from aBaseProject
.Returns the path to the report file.reportFile
(File reportFile) Specifies the XML report file.reportFile
(String reportFile) Specifies the XML report file.reportFile
(Path reportFile) Specifies the XML report file.Methods inherited from class rife.bld.operations.AbstractProcessOperation
classpath, classpath, classpath, environment, environment, environment, errorProcessor, errorProcessor, executeStartProcess, javaOptions, javaOptions, javaTool, javaTool, mainClass, mainClass, module, module, modulePath, modulePath, modulePath, outputProcessor, outputProcessor, process, workDirectory, workDirectory
Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Constructor Details
-
JUnitReporterOperation
public JUnitReporterOperation()
-
-
Method Details
-
execute
Preforms the operation.- Overrides:
execute
in classAbstractProcessOperation<JUnitReporterOperation>
- Throws:
ExitStatusException
- if the operation fails
-
executeConstructProcessCommandList
Constructs the command list to use for the operation.- Specified by:
executeConstructProcessCommandList
in classAbstractProcessOperation<JUnitReporterOperation>
- Returns:
- the command list
-
fromProject
Configures the operation from aBaseProject
.If not set, the
report file
is set to the default location for JUnit reports.- Specified by:
fromProject
in classAbstractProcessOperation<JUnitReporterOperation>
- Parameters:
project
- the project to use as the context for this operation;- Returns:
- this operation
-
failOnSummary
Configures whether the operation should fail if the summary is printed.- Parameters:
failOnSummary
-true
to fail on summary,false
to not fail- Returns:
- this operation
-
failOnSummary
public boolean failOnSummary()Returns whether the operation should fail if the summary is printed.- Returns:
true
if the operation should fail on summary,false
otherwise
-
reportFile
Returns the path to the report file.- Returns:
- the path
-
reportFile
Specifies the XML report file.- Parameters:
reportFile
- the report file path- Returns:
- this operation
- See Also:
-
reportFile
Specifies the XML report file.- Parameters:
reportFile
- the report file path- Returns:
- this operation
- See Also:
-
reportFile
Specifies the XML report file.- Parameters:
reportFile
- the report file path- Returns:
- this operation
- See Also:
-