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
-
public class TestParserTask extends Task<TestParserTask,TestParserTaskProperties>
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
Constructors Constructor Description TestParserTask(TestParserTaskProperties.TestType testType)Specify test parsing task that handles selected test engine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull TestParserTaskPropertiesbuild()static TestParserTaskcreateJUnitParserTask()Specify test parsing task that handles JUnit test results.static TestParserTaskcreateMochaParserTask()Specify test parsing task that handles test results of Mocha executed with 'mocha-bamboo-reporter'.static TestParserTaskcreateMSTestParserTask()Specify test parsing task that handles mstest test results.static TestParserTaskcreateNUnitParserTask()Specify test parsing task that handles NUnit test results.static TestParserTaskcreateTestNGParserTask()Specify test parsing task that handles TestNG test results.TestParserTaskdefaultResultDirectory()Adds default directory to the list of directories in which task looks for test result files.booleanequals(java.lang.Object o)TestParserTaskProperties.TestTypegetTestType()Gets test engine supported by this task.inthashCode()TestParserTaskpickUpTestResultsCreatedOutsideOfThisBuild(@Nullable java.lang.Boolean pickUpTestResultsCreatedOutsideOfThisBuild)Allows/disallows the task to scan test result files created before start time of the build.TestParserTaskresultDirectories(@NotNull java.lang.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 Detail
-
TestParserTask
public TestParserTask(TestParserTaskProperties.TestType testType)
Specify test parsing task that handles selected test engine. Supported test engines are JUnit and TestNG.
-
-
Method Detail
-
createJUnitParserTask
public static TestParserTask createJUnitParserTask()
Specify test parsing task that handles JUnit test results.
-
createTestNGParserTask
public static TestParserTask createTestNGParserTask()
Specify test parsing task that handles TestNG test results.
-
createNUnitParserTask
public static TestParserTask createNUnitParserTask()
Specify test parsing task that handles NUnit test results.
-
createMochaParserTask
public static TestParserTask createMochaParserTask()
Specify test parsing task that handles test results of Mocha executed with 'mocha-bamboo-reporter'.
-
createMSTestParserTask
public static TestParserTask createMSTestParserTask()
Specify test parsing task that handles mstest test results.
-
getTestType
public TestParserTaskProperties.TestType getTestType()
Gets test engine supported by this task.
-
resultDirectories
public TestParserTask resultDirectories(@NotNull @NotNull java.lang.String... resultDirectories)
Adds directories from the argument to the list of directories in which task looks for test result files.
-
defaultResultDirectory
public TestParserTask 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 java.lang.Boolean pickUpTestResultsCreatedOutsideOfThisBuild)
Allows/disallows the task to scan test result files created before start time of the build.
-
build
@NotNull protected @NotNull TestParserTaskProperties build()
- Specified by:
buildin classTask<TestParserTask,TestParserTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<TestParserTask,TestParserTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<TestParserTask,TestParserTaskProperties>
-
-