public class NUnitRunnerTask extends Task<NUnitRunnerTask,NUnitRunnerTaskProperties>
Modifier and Type | Class and Description |
---|---|
static class |
NUnitRunnerTask.NUnitVersion |
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
NUnitRunnerTask() |
Modifier and Type | Method and Description |
---|---|
protected NUnitRunnerTaskProperties |
build() |
NUnitRunnerTask |
commandLineOptions(String commandLineOptions)
Add any command line options or switches you wish to include when running NUnit.
|
NUnitRunnerTask |
environmentVariables(String environmentVariables)
Environment variables which will be passed to runner process.
|
boolean |
equals(Object o) |
NUnitRunnerTask |
executable(String executable)
Sets label (not a path) of NUnit executable.
|
int |
hashCode() |
NUnitRunnerTask |
nUnitTestFiles(String nUnitTestFiles)
Specify an assembly (.dll), Visual Studio project (.csproj), or NUnit Test Suite (.nunit) to test.
|
NUnitRunnerTask |
nUnitVersion2()
Sets the version of NUnit corresponding for the provided label.
|
NUnitRunnerTask |
nUnitVersion3()
Sets the version of NUnit corresponding for the provided label.
|
NUnitRunnerTask |
resultFilename(String resultFilename)
The name Bamboo should give to the results file produced by NUnit.
|
NUnitRunnerTask |
testCategoriesToExclude(String... testCategoriesToExclude)
Adds categories to exclude.
|
NUnitRunnerTask |
testCategoriesToInclude(String... testCategoriesToInclude)
Adds categories to include.
|
NUnitRunnerTask |
testsToRun(String... testsToRun)
Adds tests to run.
|
conditions, description, enabled, requirements, toString
public NUnitRunnerTask executable(@NotNull String executable)
This field is mandatory.
public NUnitRunnerTask nUnitVersion2()
Either nUnitVersion2() or nUnitVersion3() must be called.
public NUnitRunnerTask nUnitVersion3()
Either nUnitVersion2() or nUnitVersion3() must be called.
public NUnitRunnerTask nUnitTestFiles(@NotNull String nUnitTestFiles)
This field is mandatory.
public NUnitRunnerTask resultFilename(@NotNull String resultFilename)
This field is mandatory.
public NUnitRunnerTask testsToRun(@NotNull String... testsToRun)
In case this field is left empty NUnit will execute all tests from the specified test file.
public NUnitRunnerTask testCategoriesToInclude(@NotNull String... testCategoriesToInclude)
public NUnitRunnerTask testCategoriesToExclude(@NotNull String... testCategoriesToExclude)
public NUnitRunnerTask commandLineOptions(@Nullable String commandLineOptions)
public NUnitRunnerTask environmentVariables(@Nullable String environmentVariables)
@NotNull protected NUnitRunnerTaskProperties build()
build
in class Task<NUnitRunnerTask,NUnitRunnerTaskProperties>
public boolean equals(Object o)
equals
in class Task<NUnitRunnerTask,NUnitRunnerTaskProperties>
public int hashCode()
hashCode
in class Task<NUnitRunnerTask,NUnitRunnerTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.