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

OBSOLETE

Open Fake.Testing to use the latest xUnit2 task.

XUnit2Helper

DEPRECATED. See Fake.Testing.XUnit2.

Contains tasks to run xUnit unit tests.

Nested types and modules

TypeDescription
ParallelOption
OBSOLETE

This type will be removed in a future version.

DEPRECATED.

XUnit2ErrorLevel
OBSOLETE

This type alias will be removed in a future version.

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

XUnit2Params
OBSOLETE

This type will be removed in a future version. See Fake.Testing.XUnit2.XUnit2Params

DEPRECATED. The xUnit parameter type

Functions and values

Function or valueDescription
empty2Trait
Signature: (string * string) option
Attributes:
[<Obsolete("This value will be removed in a future version.")>]
OBSOLETE

This value will be removed in a future version.

DEPRECATED. The xUnit default parameters

xUnit2 setParams assemblies
Signature: setParams:(XUnit2Params -> XUnit2Params) -> assemblies:seq<string> -> unit
Attributes:
[<Obsolete("Deprecated. This task will be removed in a future version. Open Fake.Testing to use the latest xUnit2 task.")>]
OBSOLETE

Deprecated. This task will be removed in a future version. Open Fake.Testing to use the latest xUnit2 task.

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
Attributes:
[<Obsolete("This value will be removed in a future version. See Fake.Testing.XUnit2.XUnit2Defaults")>]
OBSOLETE

This value will be removed in a future version. See Fake.Testing.XUnit2.XUnit2Defaults

DEPRECATED.