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

MSTest

Contains tasks to run MSTest unit tests.

Nested types and modules

TypeDescription
ErrorLevel

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

MSTestParams

Parameter type to configure the MSTest.exe.

Functions and values

Function or valueDescription
MSTest setParams assemblies
Signature: setParams:(MSTestParams -> MSTestParams) -> assemblies:seq<string> -> unit

Runs MSTest command line tool on a group of assemblies.

Parameters

  • setParams - Function used to manipulate the default MSTestParams value.
  • 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") 
      |> MSTest (fun p -> { p with Category = "group1" })
)
MSTestDefaults
Signature: MSTestParams

MSTest default parameters.