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

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

v5.fake.build

Common Module

Contains types and utility functions related to running NUnit unit tests.

Types

Type Description

NUnitDomainModel

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

NUnitErrorLevel

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

NUnitParams

The NUnit Console Parameters type. FAKE will use `NUnitDefaults` for values not provided.

NUnitProcessModel

Process model for nunit to use, see Project Editor

Functions and values

Function or value Description

NUnitDefaults

Full Usage: NUnitDefaults

Returns: NUnitParams

The NUnitParams default parameters.

Returns: NUnitParams

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 : NUnitParams
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 : NUnitParams
Returns: string

Active patterns

Active pattern Description

(|OK|TestsFailed|FatalError|) errorCode

Full Usage: (|OK|TestsFailed|FatalError|) errorCode

Parameters:
    errorCode : int

Returns: Choice<unit, unit, string>

NUnit console returns negative error codes for errors and sum of failed, ignored and exceptional tests otherwise. Zero means that all tests passed.

errorCode : int
Returns: Choice<unit, unit, string>