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
-
public class NodeunitTask extends BaseNodeTask<NodeunitTask,NodeunitTaskProperties>
Runs Nodeunit tests.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_NODEUNIT_EXECUTABLEstatic booleanDEFAULT_PARSE_TEST_RESULTSstatic java.lang.StringDEFAULT_RESULTS_DIRECTORYstatic java.lang.StringDEFAULT_TEST_DIRECTORY-
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
Constructors Constructor Description NodeunitTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeunitTaskarguments(@Nullable java.lang.String arguments)Additional command line arguments to pass to Nodeunit.protected @NotNull NodeunitTaskPropertiesbuild()booleanequals(java.lang.Object o)inthashCode()NodeunitTasknodeunitExecutable(@NotNull java.lang.String nodeunitExecutable)Specify path to Nodeunit executable for this task.NodeunitTaskparseTestResults(boolean parseTestResults)Whether this task should parse test results produced by Nodeunit.NodeunitTasktestFilesAndDirectories(@NotNull java.lang.String testFilesAndDirectories)Specify files and/or directories containing Nodeunit tests.NodeunitTasktestResultsDirectory(@NotNull java.lang.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 Detail
-
DEFAULT_NODEUNIT_EXECUTABLE
public static final java.lang.String DEFAULT_NODEUNIT_EXECUTABLE
-
DEFAULT_TEST_DIRECTORY
public static final java.lang.String DEFAULT_TEST_DIRECTORY
-
DEFAULT_RESULTS_DIRECTORY
public static final java.lang.String DEFAULT_RESULTS_DIRECTORY
-
DEFAULT_PARSE_TEST_RESULTS
public static final boolean DEFAULT_PARSE_TEST_RESULTS
-
-
Method Detail
-
nodeunitExecutable
public NodeunitTask nodeunitExecutable(@NotNull @NotNull java.lang.String nodeunitExecutable)
Specify path to Nodeunit executable for this task. Path must be relative to the working directory.Example:
node_modules/nodeunit/bin/nodeunit
-
testFilesAndDirectories
public NodeunitTask testFilesAndDirectories(@NotNull @NotNull java.lang.String 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
public NodeunitTask testResultsDirectory(@NotNull @NotNull java.lang.String testResultsDirectory)
Name of the directory where the test results will be stored (in JUnit XML format).
-
parseTestResults
public NodeunitTask parseTestResults(boolean 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
public NodeunitTask arguments(@Nullable @Nullable java.lang.String arguments)
Additional command line arguments to pass to Nodeunit. Be aware that some options may already be set by this task configuration.
-
build
@NotNull protected @NotNull NodeunitTaskProperties build()
- Specified by:
buildin classTask<NodeunitTask,NodeunitTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseNodeTask<NodeunitTask,NodeunitTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseNodeTask<NodeunitTask,NodeunitTaskProperties>
-
-