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, workingSubdirectory
conditions, 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() |
boolean |
equals(Object o) |
int |
hashCode() |
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, workingSubdirectory
conditions, description, enabled, requirements, toString
public 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>
public boolean equals(Object o)
equals
in class BaseNodeTask<MochaRunnerTask,MochaRunnerTaskProperties>
public int hashCode()
hashCode
in class BaseNodeTask<MochaRunnerTask,MochaRunnerTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.