FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

MSTest Module

Contains tasks to run MSTest unit tests.

Types

Type Description

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 value Description

MSTestDefaults

Full Usage: MSTestDefaults

Returns: MSTestParams

MSTest default parameters.

Returns: MSTestParams

buildArgs parameters assembly

Full Usage: buildArgs parameters assembly

Parameters:
Returns: string

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

parameters : MSTestParams
assembly : string
Returns: string

exec setParams assemblies

Full Usage: exec setParams assemblies

Parameters:
    setParams : MSTestParams -> MSTestParams - Function used to manipulate the default MSTestParams value.
    assemblies : seq<string> - Sequence of one or more assemblies containing Microsoft Visual Studio Unit Test Framework unit tests.

Runs MSTest command line tool on a group of assemblies.

setParams : MSTestParams -> MSTestParams

Function used to manipulate the default MSTestParams value.

assemblies : seq<string>

Sequence of one or more assemblies containing Microsoft Visual Studio Unit Test Framework unit tests.

Example


 Target "Test" (fun _ ->
         !! (testDir + @"\*.Tests.dll")
           |> MSTest (fun p -> { p with Category = "group1" })
     )