Class NodeunitTask
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<NodeunitTask,NodeunitTaskProperties>
com.atlassian.bamboo.specs.builders.task.NodeunitTask
Runs Nodeunit tests.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final boolean
static final String
static final String
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 Nodeunit.protected @NotNull NodeunitTaskProperties
build()
boolean
int
hashCode()
nodeunitExecutable
(@NotNull String nodeunitExecutable) Specify path to Nodeunit executable for this task.parseTestResults
(boolean parseTestResults) Whether this task should parse test results produced by Nodeunit.testFilesAndDirectories
(@NotNull String testFilesAndDirectories) Specify files and/or directories containing Nodeunit tests.testResultsDirectory
(@NotNull String testResultsDirectory) Name of the directory where the test results will be stored (in JUnit XML format).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_NODEUNIT_EXECUTABLE
-
DEFAULT_TEST_DIRECTORY
-
DEFAULT_RESULTS_DIRECTORY
-
DEFAULT_PARSE_TEST_RESULTS
public static final boolean DEFAULT_PARSE_TEST_RESULTS
-
-
Constructor Details
-
NodeunitTask
public NodeunitTask()
-
-
Method Details
-
nodeunitExecutable
Specify path to Nodeunit executable for this task. Path must be relative to the working directory.Example:
node_modules/nodeunit/bin/nodeunit
-
testFilesAndDirectories
Specify files and/or directories containing Nodeunit tests. You can specify multiple files and directories separated by a space. Defaults to 'test/' directory. -
testResultsDirectory
Name of the directory where the test results will be stored (in JUnit XML format). -
parseTestResults
Whether this task should parse test results produced by Nodeunit. Defaults to true. If set to false, a subsequentTestParserTask
forTestParserTaskProperties.TestType.JUNIT
should be used to gather the results. -
arguments
Additional command line arguments to pass to Nodeunit. Be aware that some options may already be set by this task configuration. -
build
- Specified by:
build
in classTask<NodeunitTask,
NodeunitTaskProperties>
-
equals
- Overrides:
equals
in classBaseNodeTask<NodeunitTask,
NodeunitTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseNodeTask<NodeunitTask,
NodeunitTaskProperties>
-