Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

MSpec

Contains a task to run machine.specifications tests.

Nested types and modules

TypeDescription
MSpecParams

Parameter type to configure the MSpec runner.

Functions and values

Function or valueDescription
buildArgs parameters assemblies
Signature: parameters:MSpecParams -> assemblies:seq<string> -> string

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

exec setParams assemblies
Signature: setParams:(MSpecParams -> MSpecParams) -> assemblies:seq<string> -> unit

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

Parameters

  • setParams - Function used to overwrite the MSpec default parameters.
  • assemblies - The file names of the test assemblies.

Sample

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

Hint

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

MSpecDefaults
Signature: MSpecParams

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