INFO

This API documentation is for FAKE version 5.0 or later. The old API documentation can be found here for migration or here for fake 4

This is part of the Fake.DotNet.Testing.VSTest module.

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.run setParams assemblies
Signature: setParams:(VSTestParams -> VSTestParams) -> assemblies:seq<string> -> unit

Runs the 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.create "Test" (fun _ ->
    !! (testDir + @"\*.Tests.dll") 
      |> VSTest.run (fun p -> { p with SettingsPath = "Local.RunSettings" })
)