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

OBSOLETE

use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)

XUnitHelper

DEPRECATED. See Fake.Testing.XUnit.

Contains tasks to run xUnit unit tests.

Nested types and modules

TypeDescription
XUnitErrorLevel
OBSOLETE

use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)

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

XUnitParams
OBSOLETE

use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)

DEPRECATED. The xUnit parameter type

Functions and values

Function or valueDescription
emptyTrait
Signature: (string * string) option
Attributes:
[<Obsolete("use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)")>]
OBSOLETE

use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)

DEPRECATED. The xUnit default parameters

xUnit setParams assemblies
Signature: setParams:(XUnitParams -> XUnitParams) -> assemblies:seq<string> -> unit
Attributes:
[<Obsolete("use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)")>]
OBSOLETE

use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)

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("use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)")>]
OBSOLETE

use Fake.DotNet.Testing.XUnit2 instead (yes please migrate to xunit2)

DEPRECATED.