FAKE - F# Make - A DSL for build tasks and more FAKE
6.0.0

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

DotNet.TestOptions Type

dotnet test command options

Record fields

Record Field Description

Blame

Full Usage: Blame

Field type: bool

Runs the tests in blame mode. This option is helpful in isolating the problematic tests causing test host to crash. It creates an output file in the current directory as Sequence.xml that captures the order of tests execution before the crash. (--blame)

Field type: bool

Collect

Full Usage: Collect

Field type: string option

Enables data collector for the test run. More info here : https://aka.ms/vstest-collect (--collect)

Field type: string option

Common

Full Usage: Common

Field type: Options

Common tool options

Field type: Options

Configuration

Full Usage: Configuration

Field type: BuildConfiguration

Configuration to use for building the project. Default for most projects is "Debug". (--configuration)

Field type: BuildConfiguration

Diag

Full Usage: Diag

Field type: string option

Enable verbose logs for test platform. Logs are written to the provided file. (--diag)

Field type: string option

Filter

Full Usage: Filter

Field type: string option

Run tests that match the given expression. (--filter) Examples: Run tests with priority set to 1: --filter "Priority = 1" Run a test with the specified full name: --filter "FullyQualifiedName=Namespace.ClassName.MethodName" Run tests that contain the specified name: --filter "FullyQualifiedName~Namespace.Class" More info on filtering support: https://aka.ms/vstest-filtering

Field type: string option

Framework

Full Usage: Framework

Field type: string option

Target framework to publish for. The target framework has to be specified in the project file. (--framework)

Field type: string option

ListTests

Full Usage: ListTests

Field type: bool

Lists discovered tests (--list-tests)

Field type: bool

Logger

Full Usage: Logger

Field type: string option

Specify a logger for test results. (--logger)

Field type: string option

MSBuildParams

Full Usage: MSBuildParams

Field type: CliArguments

Other msbuild specific parameters

Field type: CliArguments

NoBuild

Full Usage: NoBuild

Field type: bool

Do not build project before testing. (--no-build)

Field type: bool

NoLogo

Full Usage: NoLogo

Field type: bool

Don't show copyright messages. (--nologo)

Field type: bool

NoRestore

Full Usage: NoRestore

Field type: bool

Does not do an implicit restore when executing the command. (--no-restore)

Field type: bool

Output

Full Usage: Output

Field type: string option

Directory in which to find the binaries to be run (--output)

Field type: string option

ResultsDirectory

Full Usage: ResultsDirectory

Field type: string option

The directory where the test results are going to be placed. The specified directory will be created if it does not exist. (--results-directory)

Field type: string option

RunSettingsArguments

Full Usage: RunSettingsArguments

Field type: string option

Arguments to pass run settings configurations through commandline. Arguments may be specified as name-value pair of the form [name]=[value] after "-- ". Note the space after --.

Field type: string option

Settings

Full Usage: Settings

Field type: string option

Settings to use when running tests (--settings)

Field type: string option

TestAdapterPath

Full Usage: TestAdapterPath

Field type: string option

Use custom adapters from the given path in the test run. (--test-adapter-path)

Field type: string option

Instance members

Instance member Description

this.Environment

Full Usage: this.Environment

Returns: Map<string, string>

Gets the current environment

Returns: Map<string, string>

this.WithCommon

Full Usage: this.WithCommon

Parameters:
Returns: TestOptions
Modifiers: inline

Changes the "Common" properties according to the given function

f : Options -> Options
Returns: TestOptions

this.WithEnvironment

Full Usage: this.WithEnvironment

Parameters:
    map : Map<string, string>

Returns: TestOptions

Sets the current environment variables.

map : Map<string, string>
Returns: TestOptions

this.WithRedirectOutput

Full Usage: this.WithRedirectOutput

Parameters:
    shouldRedirect : bool

Returns: TestOptions

Sets a value indicating whether the output for the given process is redirected.

shouldRedirect : bool
Returns: TestOptions

Static members

Static member Description

TestOptions.Create()

Full Usage: TestOptions.Create()

Returns: TestOptions

Parameter default values.

Returns: TestOptions