Class VSTestCommand
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Runs test containers with the VSTest runner selected by MSBuild Locator.
public sealed record VSTestCommand : ExecToolCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<VSTestCommand>Inheritance
Implements
Properties
Blame
Whether blame data is collected to diagnose a crashing test host.
public bool Blame { get; init; }Property Value
Collect
Data collectors enabled for the test run; each value emits a separate collect option.
public IReadOnlyList<string> Collect { get; init; }Property Value
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
Diag
Diagnostic log path, optionally followed by a semicolon-delimited trace level.
public string? Diag { get; init; }Property Value
Framework
Target framework used for test execution.
public string? Framework { get; init; }Property Value
InIsolation
Whether tests run in an isolated process.
public bool InIsolation { get; init; }Property Value
ListTests
Whether discovered tests are listed instead of run.
public bool ListTests { get; init; }Property Value
Loggers
Logger names and settings; each value emits a separate logger option.
public IReadOnlyList<string> Loggers { get; init; }Property Value
Parallel
Whether tests run in parallel using up to all available cores.
public bool Parallel { get; init; }Property Value
ParentProcessId
Parent process ID used by an orchestrating host.
public int? ParentProcessId { get; init; }Property Value
- int?
Platform
Target process architecture used for test execution.
public VSTestPlatform? Platform { get; init; }Property Value
Port
Socket port used by an orchestrating host.
public int? Port { get; init; }Property Value
- int?
ResultsDirectory
Directory created for test results.
public string? ResultsDirectory { get; init; }Property Value
Settings
Run-settings file used for test execution.
public string? Settings { get; init; }Property Value
TestAdapterLoadingStrategy
Test-adapter loading strategy accepted by the installed runner.
public string? TestAdapterLoadingStrategy { get; init; }Property Value
TestAdapterPath
Path searched for custom test adapters.
public string? TestAdapterPath { get; init; }Property Value
TestCaseFilter
Test-case filter expression; cannot be combined with DotNetDo.VSTestCommand.Tests.
public string? TestCaseFilter { get; init; }Property Value
TestEnvironment
Environment variables set for the test run; specifying any variable implies isolation.
public IReadOnlyDictionary<string, string> TestEnvironment { get; init; }Property Value
TestFiles
Test containers or wildcard patterns to run.
public IReadOnlyList<string> TestFiles { get; init; }Property Value
Tests
Test names to run, emitted as one comma-delimited option; cannot be combined with DotNetDo.VSTestCommand.TestCaseFilter.
public IReadOnlyList<string> Tests { get; init; }