Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

OBSOLETE

use Fake.DotNet.Testing.VSTest instead

VSTest

Contains tasks to run VSTest unit tests.

Nested types and modules

TypeDescription
ErrorLevel
OBSOLETE

use Fake.DotNet.Testing.VSTest instead

Option which allow to specify if a VSTest error should break the build.

VSTestParams
OBSOLETE

use Fake.DotNet.Testing.VSTest instead

Parameter type to configure VSTest.Console.exe

Functions and values

Function or valueDescription
VSTest setParams assemblies
Signature: setParams:(VSTestParams -> VSTestParams) -> assemblies:seq<string> -> unit
Attributes:
[<Obsolete("use Fake.DotNet.Testing.VSTest instead")>]
OBSOLETE

use Fake.DotNet.Testing.VSTest instead

Runs VSTest command line tool (VSTest.Console.exe) on a group of assemblies.

Parameters

  • setParams - Function used to manipulate the default VSTestParams values.
  • assemblies - Sequence of one or more assemblies containing Microsoft Visual Studio Unit Test Framework unit tests.

Sample usage

1: 
2: 
3: 
4: 
Target "Test" (fun _ ->
    !! (testDir + @"\*.Tests.dll") 
      |> VSTest (fun p -> { p with SettingsPath = "Local.RunSettings" })
)
VSTestDefaults
Signature: VSTestParams
Attributes:
[<Obsolete("use Fake.DotNet.Testing.VSTest instead")>]
OBSOLETE

use Fake.DotNet.Testing.VSTest instead

VSTest default parameters.