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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final booleanstatic final Stringstatic final StringFields inherited from class com.atlassian.bamboo.specs.builders.task.BaseNodeTask
environmentVariables, nodeExecutable, workingSubdirectoryFields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdditional command line arguments to pass to Nodeunit.protected @NotNull NodeunitTaskPropertiesbuild()booleaninthashCode()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, workingSubdirectoryMethods 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 subsequentTestParserTaskforTestParserTaskProperties.TestType.JUNITshould 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:
buildin classTask<NodeunitTask,NodeunitTaskProperties>
-
equals
- Overrides:
equalsin classBaseNodeTask<NodeunitTask,NodeunitTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseNodeTask<NodeunitTask,NodeunitTaskProperties>
-