Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

VSTest

Contains tasks to run VSTest unit tests.

Nested types and modules

TypeDescription
ErrorLevel

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

VSTestParams

Parameter type to configure VSTest.Console.exe

Functions and values

Function or valueDescription
VSTest setParams assemblies
Signature: setParams:(VSTestParams -> VSTestParams) -> assemblies:seq<string> -> unit

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

VSTest default parameters.