public class MochaRunnerTask extends BaseNodeTask<MochaRunnerTask,MochaRunnerTaskProperties>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MOCHA_EXECUTABLE |
static boolean |
DEFAULT_PARSE_TEST_RESULTS |
static String |
DEFAULT_TEST_DIRECTORY |
environmentVariables, nodeExecutable, workingSubdirectoryconditions, description, requirements, taskEnabled| Constructor and Description |
|---|
MochaRunnerTask() |
| Modifier and Type | Method and Description |
|---|---|
MochaRunnerTask |
arguments(String arguments)
Additional command line arguments to pass to Mocha.
|
protected MochaRunnerTaskProperties |
build() |
MochaRunnerTask |
mochaExecutable(String mochaExecutable)
Specify path to the Mocha executable for this task.
|
MochaRunnerTask |
parseTestResults(boolean parseTestResults)
Whether this task should parse test results produced by Mocha.
|
MochaRunnerTask |
testFilesAndDirectories(String testFilesAndDirectories)
Specify files and/or directories containing Mocha tests.
|
environmentVariables, nodeExecutable, workingSubdirectoryconditions, description, enabled, requirementspublic static final String DEFAULT_MOCHA_EXECUTABLE
public static final String DEFAULT_TEST_DIRECTORY
public static final boolean DEFAULT_PARSE_TEST_RESULTS
public MochaRunnerTask mochaExecutable(@NotNull String mochaExecutable)
Example: node_modules/mocha/bin/mocha
public MochaRunnerTask testFilesAndDirectories(@NotNull String testFilesAndDirectories)
public MochaRunnerTask parseTestResults(boolean parseTestResults)
MochaParserTask should be used to gather the results.public MochaRunnerTask arguments(@Nullable String arguments)
@NotNull protected MochaRunnerTaskProperties build()
build in class Task<MochaRunnerTask,MochaRunnerTaskProperties>Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.