Class MochaParserTask
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.task.Task<MochaParserTask,MochaParserTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.MochaParserTask
-
@Deprecated public class MochaParserTask extends Task<MochaParserTask,MochaParserTaskProperties>
Deprecated.since 6.3 useTestParserTask.createMochaParserTask()Parse test results of Mocha executed with 'mocha-bamboo-reporter'.For convenience, it's advised to use
MochaRunnerTaskwhich is capable of both executing tests and parsing test results.MochaParserTaskshould only be used if the tests were executed in a different manner.- See Also:
- mochajs.org
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_TEST_FILE_PATTERNDeprecated.-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description MochaParserTask()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected @NotNull MochaParserTaskPropertiesbuild()Deprecated.MochaParserTaskpickUpTestResultsCreatedOutsideOfThisBuild(boolean pickUpTestResultsCreatedOutsideOfThisBuild)Deprecated.When set to true, files created before the current build was started will be analyzed as valid tests results.MochaParserTasktestFilePattern(@NotNull java.lang.String testFilePattern)Deprecated.Ant-style pattern of test results file to parse.MochaParserTaskworkingSubdirectory(@Nullable java.lang.String workingSubdirectory)Deprecated.since 6.3 the working subdirectory should be part oftestFilePattern.-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, equals, hashCode, requirements, toString
-
-
-
-
Method Detail
-
testFilePattern
public MochaParserTask testFilePattern(@NotNull @NotNull java.lang.String testFilePattern)
Deprecated.Ant-style pattern of test results file to parse. If not set, the default value of 'mocha.json' will be used.
-
workingSubdirectory
@Deprecated public MochaParserTask workingSubdirectory(@Nullable @Nullable java.lang.String workingSubdirectory)
Deprecated.since 6.3 the working subdirectory should be part oftestFilePattern.For example, the following code:
new MochaParserTask() .workingSubdirectory("mocha/") .testFilePattern("*.json");can be simplified to:
new MochaParserTask() .testFilePattern("mocha/*.json");Specify an alternative subdirectory as working directory for the task.
-
pickUpTestResultsCreatedOutsideOfThisBuild
public MochaParserTask pickUpTestResultsCreatedOutsideOfThisBuild(boolean pickUpTestResultsCreatedOutsideOfThisBuild)
Deprecated.When set to true, files created before the current build was started will be analyzed as valid tests results.
-
build
@NotNull protected @NotNull MochaParserTaskProperties build()
Deprecated.- Specified by:
buildin classTask<MochaParserTask,MochaParserTaskProperties>
-
-