FAKE - F# Make


XUnit2Helper

DEPRECATED. See Fake.Testing.XUnit2.

Contains tasks to run xUnit unit tests.

Nested types and modules

TypeDescription
ParallelOption

DEPRECATED.

XUnit2ErrorLevel

DEPRECATED. Option which allows to specify if an xUnit error should break the build.

XUnit2Params

DEPRECATED. The xUnit parameter type

Functions and values

Function or valueDescription
empty2Trait
Signature: (string * string) option

DEPRECATED. The xUnit default parameters

xUnit2 setParams assemblies
Signature: setParams:(XUnit2Params -> XUnit2Params) -> assemblies:seq<string> -> unit

DEPRECATED. See Fake.Testing.XUnit2.xUnit2.

Runs xUnit unit tests in the given assemblies via the given xUnit runner. Will fail if the runner terminates with non-zero exit code for any of the assemblies. Offending assemblies will be listed in the error message.

The xUnit runner terminates with a non-zero exit code if any of the tests in the given assembly fail.

Parameters

  • setParams - Function used to manipulate the default XUnitParams value.
  • assemblies - Sequence of one or more assemblies containing xUnit unit tests.

Sample usage

1: 
2: 
3: 
4: 
Target "Test" (fun _ ->
    !! (testDir + @"\xUnit.Test.*.dll")
      |> xUnit2 (fun p -> {p with OutputDir = testDir })
)
XUnit2Defaults
Signature: XUnit2Params

DEPRECATED.

Fork me on GitHub