TestParserTask.createMochaParserTask()
@Deprecated public class MochaParserTask extends Task<MochaParserTask,MochaParserTaskProperties>
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.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TEST_FILE_PATTERN
Deprecated.
|
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
MochaParserTask()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected MochaParserTaskProperties |
build()
Deprecated.
|
MochaParserTask |
pickUpTestResultsCreatedOutsideOfThisBuild(boolean pickUpTestResultsCreatedOutsideOfThisBuild)
Deprecated.
When set to true, files created before the current build was started will be analyzed as valid tests results.
|
MochaParserTask |
testFilePattern(String testFilePattern)
Deprecated.
Ant-style pattern of test results file to parse.
|
MochaParserTask |
workingSubdirectory(String workingSubdirectory)
Deprecated.
since 6.3 the working subdirectory should be part of
testFilePattern .
For example, the following code:
can be simplified to:
|
conditions, description, enabled, equals, hashCode, requirements, toString
public static final String DEFAULT_TEST_FILE_PATTERN
public MochaParserTask testFilePattern(@NotNull String testFilePattern)
@Deprecated public MochaParserTask workingSubdirectory(@Nullable String workingSubdirectory)
testFilePattern
.
For example, the following code:
new MochaParserTask()
.workingSubdirectory("mocha/")
.testFilePattern("*.json");
can be simplified to:
new MochaParserTask()
.testFilePattern("mocha/*.json");
public MochaParserTask pickUpTestResultsCreatedOutsideOfThisBuild(boolean pickUpTestResultsCreatedOutsideOfThisBuild)
@NotNull protected MochaParserTaskProperties build()
build
in class Task<MochaParserTask,MochaParserTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.