DotnetVsTestStep
A .NET vstest step to run .NET VSTest
Example. Runs dotnet vstest
command to run selected tests by names from the specified assemblies
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
dotnetVsTest {
assemblies = "path\to\assemblies\*.dll"
excludedAssemblies = "path\to\assemblies\ExcludedTests.dll"
version = DotnetVsTestStep.VSTestVersion.V17
filter = testName {
names = """
Test0
Test1
Test2
""".trimIndent()
}
settingsFile = "MyProjectTestsSettings.runsettings"
logging = DotnetVsTestStep.Verbosity.Normal
runInIsolation = true
platform = DotnetVsTestStep.Platform.x64
}
Content copied to clipboard }
}
See also
Constructors
Types
Docker image platforms
Platform bitness
Logging verbosity
MSBuild 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
If enabled, "pull image" command will be run before docker run.
Build working directory for script, specify it if it is different from the checkout * directory.