public class NodeunitTask extends BaseNodeTask<NodeunitTask,NodeunitTaskProperties>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NODEUNIT_EXECUTABLE |
static boolean |
DEFAULT_PARSE_TEST_RESULTS |
static String |
DEFAULT_RESULTS_DIRECTORY |
static String |
DEFAULT_TEST_DIRECTORY |
environmentVariables, nodeExecutable, workingSubdirectoryconditions, description, requirements, taskEnabled| Constructor and Description |
|---|
NodeunitTask() |
| Modifier and Type | Method and Description |
|---|---|
NodeunitTask |
arguments(@Nullable String arguments)
Additional command line arguments to pass to Nodeunit.
|
protected @NotNull NodeunitTaskProperties |
build() |
boolean |
equals(Object o) |
int |
hashCode() |
NodeunitTask |
nodeunitExecutable(@NotNull String nodeunitExecutable)
Specify path to Nodeunit executable for this task.
|
NodeunitTask |
parseTestResults(boolean parseTestResults)
Whether this task should parse test results produced by Nodeunit.
|
NodeunitTask |
testFilesAndDirectories(@NotNull String testFilesAndDirectories)
Specify files and/or directories containing Nodeunit tests.
|
NodeunitTask |
testResultsDirectory(@NotNull String testResultsDirectory)
Name of the directory where the test results will be stored (in JUnit XML format).
|
environmentVariables, nodeExecutable, workingSubdirectoryconditions, description, enabled, requirements, toStringpublic static final String DEFAULT_NODEUNIT_EXECUTABLE
public static final String DEFAULT_TEST_DIRECTORY
public static final String DEFAULT_RESULTS_DIRECTORY
public static final boolean DEFAULT_PARSE_TEST_RESULTS
public NodeunitTask nodeunitExecutable(@NotNull @NotNull String nodeunitExecutable)
Example: node_modules/nodeunit/bin/nodeunit
public NodeunitTask testFilesAndDirectories(@NotNull @NotNull String testFilesAndDirectories)
public NodeunitTask testResultsDirectory(@NotNull @NotNull String testResultsDirectory)
public NodeunitTask parseTestResults(boolean parseTestResults)
TestParserTask for TestParserTaskProperties.TestType.JUNIT should be used to gather the results.public NodeunitTask arguments(@Nullable @Nullable String arguments)
@NotNull protected @NotNull NodeunitTaskProperties build()
build in class Task<NodeunitTask,NodeunitTaskProperties>public boolean equals(Object o)
equals in class BaseNodeTask<NodeunitTask,NodeunitTaskProperties>public int hashCode()
hashCode in class BaseNodeTask<NodeunitTask,NodeunitTaskProperties>Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.