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

MSpec Module

Contains a task to run machine.specifications tests.

Types

Type Description

MSpecParams

Parameter type to configure the MSpec runner.

Functions and values

Function or value Description

MSpecDefaults

Full Usage: MSpecDefaults

Returns: MSpecParams

MSpec default parameters - tries to locate `mspec-clr4.exe` in any subfolder.

Returns: MSpecParams

buildArgs parameters assemblies

Full Usage: buildArgs parameters assemblies

Parameters:
Returns: string

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

parameters : MSpecParams
assemblies : seq<string>
Returns: string

exec setParams assemblies

Full Usage: exec setParams assemblies

Parameters:
    setParams : MSpecParams -> MSpecParams - Function used to overwrite the MSpec default parameters.
    assemblies : seq<string> - The file names of the test assemblies.

This task to can be used to run machine.specifications on test libraries.

XmlOutputPath expects a full file path whereas the HtmlOutputDir expects a directory name

setParams : MSpecParams -> MSpecParams

Function used to overwrite the MSpec default parameters.

assemblies : seq<string>

The file names of the test assemblies.

Example


 !! (testDir @@ "Test.*.dll")
       |> MSpec (fun p -> {p with ExcludeTags = ["HTTP"]; HtmlOutputDir = reportDir})