Class NUnitRunnerTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<NUnitRunnerTask,NUnitRunnerTaskProperties>
com.atlassian.bamboo.specs.builders.task.NUnitRunnerTask
Executes, parses and displays NUnit test results.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull NUnitRunnerTaskProperties
build()
commandLineOptions
(@Nullable String commandLineOptions) Add any command line options or switches you wish to include when running NUnit.environmentVariables
(@Nullable String environmentVariables) Environment variables which will be passed to runner process.boolean
executable
(@NotNull String executable) Sets label (not a path) of NUnit executable.int
hashCode()
nUnitTestFiles
(@NotNull String nUnitTestFiles) Specify an assembly (.dll), Visual Studio project (.csproj), or NUnit Test Suite (.nunit) to test.Sets the version of NUnit corresponding for the provided label.Sets the version of NUnit corresponding for the provided label.resultFilename
(@NotNull String resultFilename) The name Bamboo should give to the results file produced by NUnit.testCategoriesToExclude
(@NotNull String... testCategoriesToExclude) Adds categories to exclude.testCategoriesToInclude
(@NotNull String... testCategoriesToInclude) Adds categories to include.testsToRun
(@NotNull String... testsToRun) Adds tests to run.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
NUnitRunnerTask
public NUnitRunnerTask()
-
-
Method Details
-
executable
Sets label (not a path) of NUnit executable.This field is mandatory.
-
nUnitVersion2
Sets the version of NUnit corresponding for the provided label.Either nUnitVersion2() or nUnitVersion3() must be called.
-
nUnitVersion3
Sets the version of NUnit corresponding for the provided label.Either nUnitVersion2() or nUnitVersion3() must be called.
-
nUnitTestFiles
Specify an assembly (.dll), Visual Studio project (.csproj), or NUnit Test Suite (.nunit) to test.This field is mandatory.
-
resultFilename
The name Bamboo should give to the results file produced by NUnit. This is an XML file. e.g. "TestResult.xml"This field is mandatory.
-
testsToRun
Adds tests to run. For each of them specify the full name of the test to run. The name of the test may be that of a test case, test fixture or namespace.In case this field is left empty NUnit will execute all tests from the specified test file.
-
testCategoriesToInclude
Adds categories to include. -
testCategoriesToExclude
Adds categories to exclude. Exclusions take precedence over inclusions. -
commandLineOptions
Add any command line options or switches you wish to include when running NUnit. -
environmentVariables
Environment variables which will be passed to runner process. -
build
- Specified by:
build
in classTask<NUnitRunnerTask,
NUnitRunnerTaskProperties>
-
equals
- Overrides:
equals
in classTask<NUnitRunnerTask,
NUnitRunnerTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<NUnitRunnerTask,
NUnitRunnerTaskProperties>
-