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.NUnit instead

NUnitCommon

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

Nested types and modules

TypeDescription
NUnitDomainModel
OBSOLETE

use Fake.DotNet.Testing.NUnit instead

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

NUnitErrorLevel
OBSOLETE

use Fake.DotNet.Testing.NUnit instead

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

NUnitParams
OBSOLETE

use Fake.DotNet.Testing.NUnit instead

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

For reference, see: NUnit-Console Command Line Options

NUnitProcessModel
OBSOLETE

use Fake.DotNet.Testing.NUnit instead

Process model for nunit to use, see Project Editor

Functions and values

Function or valueDescription
NUnitDefaults
Signature: NUnitParams
Attributes:
[<Obsolete("use Fake.DotNet.Testing.NUnit instead")>]
OBSOLETE

use Fake.DotNet.Testing.NUnit instead

The NUnitParams default parameters.

Defaults

  • IncludeCategory - ""
  • ExcludeCategory - ""
  • ToolPath - The nunit-console.exe path if it exists in a subdirectory of the current directory.
  • ToolName - "nunit-console.exe"
  • DontTestInNewThread- false
  • StopOnError - false
  • SkipNonTestAssemblies - false
  • OutputFile - "TestResult.xml"
  • Out - ""
  • ErrorOutputFile - ""
  • WorkingDir - ""
  • Framework - ""
  • ProcessModel - DefaultProcessModel
  • ShowLabels - true
  • XsltTransformFile - ""
  • TimeOut - 5 minutes
  • DisableShadowCopy - false
  • Domain - DefaultDomainModel
  • ErrorLevel - Error
  • Fixture - ""

Active patterns

Active patternDescription
( |OK|TestsFailed|FatalError| )(...)
Signature: errorCode:int -> Choice<unit,unit,string>
Attributes:
[<Obsolete("use Fake.DotNet.Testing.NUnit instead")>]
OBSOLETE

use Fake.DotNet.Testing.NUnit instead

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