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, workingSubdirectory
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
NodeunitTask() |
Modifier and Type | Method and Description |
---|---|
NodeunitTask |
arguments(String arguments)
Additional command line arguments to pass to Nodeunit.
|
protected NodeunitTaskProperties |
build() |
boolean |
equals(Object o) |
int |
hashCode() |
NodeunitTask |
nodeunitExecutable(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(String testFilesAndDirectories)
Specify files and/or directories containing Nodeunit tests.
|
NodeunitTask |
testResultsDirectory(String testResultsDirectory)
Name of the directory where the test results will be stored (in JUnit XML format).
|
environmentVariables, nodeExecutable, workingSubdirectory
conditions, description, enabled, requirements, toString
public 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 String nodeunitExecutable)
Example: node_modules/nodeunit/bin/nodeunit
public NodeunitTask testFilesAndDirectories(@NotNull String testFilesAndDirectories)
public NodeunitTask testResultsDirectory(@NotNull String testResultsDirectory)
public NodeunitTask parseTestResults(boolean parseTestResults)
TestParserTask
for TestParserTaskProperties.TestType.JUNIT
should be used to gather the results.public NodeunitTask arguments(@Nullable String arguments)
@NotNull protected 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 © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.