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 xUnit task.

XUnitHelper

DEPRECATED. See Fake.Testing.XUnit.

Contains tasks to run xUnit unit tests.

Nested types and modules

TypeDescription
XUnitErrorLevel
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.

XUnitParams
OBSOLETE

This type will be removed in a future version. See Fake.Testing.XUnit.XUnitParams

DEPRECATED. The xUnit parameter type

Functions and values

Function or valueDescription
emptyTrait
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

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

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

DEPRECATED. See Fake.Testing.XUnit.xUnit.

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")
      |> xUnit (fun p -> {p with OutputDir = testDir })
)
XUnitDefaults
Signature: XUnitParams
Attributes:
[<Obsolete("This value will be removed in a future version. See Fake.Testing.XUnit.XUnitDefaults")>]
OBSOLETE

This value will be removed in a future version. See Fake.Testing.XUnit.XUnitDefaults

DEPRECATED.