Table of Contents

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

bool

Collect

Data collectors enabled for the test run; each value emits a separate collect option.

public IReadOnlyList<string> Collect { get; init; }

Property Value

IReadOnlyList<string>

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

Diag

Diagnostic log path, optionally followed by a semicolon-delimited trace level.

public string? Diag { get; init; }

Property Value

string?

Framework

Target framework used for test execution.

public string? Framework { get; init; }

Property Value

string?

InIsolation

Whether tests run in an isolated process.

public bool InIsolation { get; init; }

Property Value

bool

ListTests

Whether discovered tests are listed instead of run.

public bool ListTests { get; init; }

Property Value

bool

Loggers

Logger names and settings; each value emits a separate logger option.

public IReadOnlyList<string> Loggers { get; init; }

Property Value

IReadOnlyList<string>

Parallel

Whether tests run in parallel using up to all available cores.

public bool Parallel { get; init; }

Property Value

bool

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

VSTestPlatform?

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

string?

Settings

Run-settings file used for test execution.

public string? Settings { get; init; }

Property Value

string?

TestAdapterLoadingStrategy

Test-adapter loading strategy accepted by the installed runner.

public string? TestAdapterLoadingStrategy { get; init; }

Property Value

string?

TestAdapterPath

Path searched for custom test adapters.

public string? TestAdapterPath { get; init; }

Property Value

string?

TestCaseFilter

Test-case filter expression; cannot be combined with DotNetDo.VSTestCommand.Tests.

public string? TestCaseFilter { get; init; }

Property Value

string?

TestEnvironment

Environment variables set for the test run; specifying any variable implies isolation.

public IReadOnlyDictionary<string, string> TestEnvironment { get; init; }

Property Value

IReadOnlyDictionary<string, string>

TestFiles

Test containers or wildcard patterns to run.

public IReadOnlyList<string> TestFiles { get; init; }

Property Value

IReadOnlyList<string>

Tests

Test names to run, emitted as one comma-delimited option; cannot be combined with DotNetDo.VSTestCommand.TestCaseFilter.

public IReadOnlyList<string> Tests { get; init; }

Property Value

IReadOnlyList<string>