FAKE - F# Make - A DSL for build tasks and more FAKE
6.0.0-alpha004

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

NUnit3 Module

Contains tasks to run NUnit unit tests.

Example


 Target.create "Test" (fun _ ->
            !! (testDir + "/NUnit.Test.*.dll")
              |> NUnit3.run (fun p ->
                  {p with
                        ShadowCopy = false })
        )

Types

Type Description

LabelsLevel

The --labels option in NUnit3 console runner. Specify whether to write test case names to the output.

NUnit3DomainModel

The --domain option controls of the creation of AppDomains for running tests. See NUnit-Console Command Line Options

NUnit3ErrorLevel

Option which allows to specify if a NUnit error should break the build.

NUnit3Params

The NUnit 3 Console Parameters type. FAKE will use NUnit3Defaults for values not provided.

NUnit3ProcessModel

Process model for NUnit 3 to use.

NUnit3Runtime

The --framework option in running NUnit 3. There are three kinds - VXY, which means either .NET framework or Mono, NetXY (use .NET framework with given version) and MonoXY (Mono framework with given version). You can use Net or Mono to let NUnit select the version. You can pass any value using Other.

NUnit3TraceLevel

The --trace option in NUnit3 console runner. Specifies the internal nunit runner log level.

Functions and values

Function or value Description

NUnit3Defaults

Full Usage: NUnit3Defaults

Returns: NUnit3Params

The NUnit3Params default parameters.

Returns: NUnit3Params

buildArgs parameters assemblies

Full Usage: buildArgs parameters assemblies

Parameters:
Returns: string

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

parameters : NUnit3Params
assemblies : seq<string>
Returns: string

getWorkingDir parameters

Full Usage: getWorkingDir parameters

Parameters:
Returns: string

Tries to detect the working directory as specified in the parameters or via TeamCity settings

parameters : NUnit3Params
Returns: string

run setParams assemblies

Full Usage: run setParams assemblies

Parameters:
    setParams : NUnit3Params -> NUnit3Params - NUnit parameters
    assemblies : seq<string> - Test assemblies to run NUnit on

Run NUnit3 with given configuration parameters on the list of assemblies

setParams : NUnit3Params -> NUnit3Params

NUnit parameters

assemblies : seq<string>

Test assemblies to run NUnit on