Class MochaRunnerTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<B,P>
com.atlassian.bamboo.specs.builders.task.BaseNodeTask<MochaRunnerTask,MochaRunnerTaskProperties>
com.atlassian.bamboo.specs.builders.task.MochaRunnerTask
Runs Mocha tests using 'mocha-bamboo-reporter'.
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectory
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdditional command line arguments to pass to Mocha.protected @NotNull MochaRunnerTaskProperties
build()
boolean
int
hashCode()
mochaExecutable
(@NotNull String mochaExecutable) Specify path to the Mocha executable for this task.parseTestResults
(boolean parseTestResults) Whether this task should parse test results produced by Mocha.testFilesAndDirectories
(@NotNull String testFilesAndDirectories) Specify files and/or directories containing Mocha tests.Methods inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectory
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Field Details
-
DEFAULT_MOCHA_EXECUTABLE
-
DEFAULT_TEST_DIRECTORY
-
DEFAULT_PARSE_TEST_RESULTS
public static final boolean DEFAULT_PARSE_TEST_RESULTS
-
-
Constructor Details
-
MochaRunnerTask
public MochaRunnerTask()
-
-
Method Details
-
mochaExecutable
Specify path to the Mocha executable for this task. Path must be relative to the working directory.Example:
node_modules/mocha/bin/mocha
-
testFilesAndDirectories
Specify files and/or directories containing Mocha tests. You can specify multiple files and directories separated by a space. Defaults to 'test/' directory. -
parseTestResults
Whether this task should parse test results produced by Mocha. Defaults to true. If set to false, a subsequentMochaParserTask
should be used to gather the results. -
arguments
Additional command line arguments to pass to Mocha. Be aware that some options may already be set by this task configuration. -
build
- Specified by:
build
in classTask<MochaRunnerTask,
MochaRunnerTaskProperties>
-
equals
- Overrides:
equals
in classBaseNodeTask<MochaRunnerTask,
MochaRunnerTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseNodeTask<MochaRunnerTask,
MochaRunnerTaskProperties>
-