MSpec Step
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
Properties
Optional collection of build step execution conditions
Specifies coverage tool to use
Comma- or newline-separated list of specifications to be excluded.
Comma- or newline-separated list of .NET assemblies which should be excluded from the list of found assemblies to test.
Build step execution mode
Comma- or newline-separated list of specifications to be executed.
Comma- or newline-separated list of .NET assemblies where the MSpec tests are specified relative to the checkout directory. Wildcards are supported.
A desired .NET Framework version
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Validates this object and reports found errors to the provided consumer