Class TestParserTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<TestParserTask,TestParserTaskProperties>
com.atlassian.bamboo.specs.builders.task.TestParserTask
Represents task that parses test results for presentation in Bamboo build results.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
ConstructorDescriptionSpecify test parsing task that handles selected test engine. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull TestParserTaskProperties
build()
static TestParserTask
Specify test parsing task that handles JUnit test results.static TestParserTask
Specify test parsing task that handles test results of Mocha executed with 'mocha-bamboo-reporter'.static TestParserTask
Specify test parsing task that handles mstest test results.static TestParserTask
Specify test parsing task that handles NUnit test results.static TestParserTask
Specify test parsing task that handles TestNG test results.Adds default directory to the list of directories in which task looks for test result files.boolean
Gets test engine supported by this task.int
hashCode()
pickUpTestResultsCreatedOutsideOfThisBuild
(@Nullable Boolean pickUpTestResultsCreatedOutsideOfThisBuild) Allows/disallows the task to scan test result files created before start time of the build.resultDirectories
(@NotNull String... resultDirectories) Adds directories from the argument to the list of directories in which task looks for test result files.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
TestParserTask
Specify test parsing task that handles selected test engine. Supported test engines are JUnit and TestNG.
-
-
Method Details
-
createJUnitParserTask
Specify test parsing task that handles JUnit test results. -
createTestNGParserTask
Specify test parsing task that handles TestNG test results. -
createNUnitParserTask
Specify test parsing task that handles NUnit test results. -
createMochaParserTask
Specify test parsing task that handles test results of Mocha executed with 'mocha-bamboo-reporter'. -
createMSTestParserTask
Specify test parsing task that handles mstest test results. -
getTestType
Gets test engine supported by this task. -
resultDirectories
Adds directories from the argument to the list of directories in which task looks for test result files. -
defaultResultDirectory
Adds default directory to the list of directories in which task looks for test result files.Default directory is defined depending on the selected test engine.
-
pickUpTestResultsCreatedOutsideOfThisBuild
public TestParserTask pickUpTestResultsCreatedOutsideOfThisBuild(@Nullable @Nullable Boolean pickUpTestResultsCreatedOutsideOfThisBuild) Allows/disallows the task to scan test result files created before start time of the build. -
build
- Specified by:
build
in classTask<TestParserTask,
TestParserTaskProperties>
-
equals
- Overrides:
equals
in classTask<TestParserTask,
TestParserTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<TestParserTask,
TestParserTaskProperties>
-