MSpecStep
A build step running MSpec tests
Example. Runs MSpec tests with help of the MSpec executable located on the agent at the specified path. 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 ...
mspec {
mspecPath = "<path to MSpec executable on the agent>"
includeTests = """tests\*.dll"""
coverage = dotcover {
assemblyFilters = "+:*"
}
}
Content copied to clipboard }
}
See also
Constructors
Types
Execution mode on a x64 machine
.NET Framework 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