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.
Parse test results of Mocha executed with 'mocha-bamboo-reporter'.
For convenience, it's advised to use MochaRunnerTask
which is capable of both executing tests and parsing
test results. MochaParserTask
should only be used if the tests were executed in a different manner.
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull MochaParserTaskProperties
build()
Deprecated.pickUpTestResultsCreatedOutsideOfThisBuild
(boolean pickUpTestResultsCreatedOutsideOfThisBuild) Deprecated.When set to true, files created before the current build was started will be analyzed as valid tests results.testFilePattern
(@NotNull String testFilePattern) Deprecated.Ant-style pattern of test results file to parse.workingSubdirectory
(@Nullable 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
-
Field Details
-
DEFAULT_TEST_FILE_PATTERN
Deprecated.
-
-
Constructor Details
-
MochaParserTask
public MochaParserTask()Deprecated.
-
-
Method Details
-
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 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
Deprecated.- Specified by:
build
in classTask<MochaParserTask,
MochaParserTaskProperties>
-
TestParserTask.createMochaParserTask()