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.buildArgs parameters assemblies
Signature: parameters:VSTestParams -> assemblies:seq<string> -> string

Builds the command line arguments from the given parameter record and the given assemblies.

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" })
)