NUnitStep
A build step running NUnit tests
Example. Runs NUnit tests with help of the default NUnit console tool installed on the TeamCity server. Collects сode coverage with help of JetBrains DotCover and reports it to the TeamCity server together with the test results.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nunit {
nunitPath = "%teamcity.tool.NUnit.Console.DEFAULT%"
includeTests = """tests\*.dll"""
coverage = dotcover {
assemblyFilters = "+:*"
}
}
Content copied to clipboard }
}
See also
Constructors
Types
NUnit version
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer
Properties
Comma- or newline-separated list of NUnit categories which should be excluded. Category expressions are supported as well.
Comma- or newline-separated list of NUnit categories. Category expressions are supported as well.