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

NUnit3

Nested types and modules

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

For reference, see: NUnit3 command line options

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 valueDescription
buildNUnit3Args parameters assemblies
Signature: parameters:NUnit3Params -> assemblies:seq<string> -> string
NUnit3 setParams assemblies
Signature: setParams:(NUnit3Params -> NUnit3Params) -> assemblies:seq<string> -> unit
NUnit3Defaults
Signature: NUnit3Params

The NUnit3Params default parameters.

  • ToolPath - The nunit-console.exe path if it exists in a subdirectory of the current directory.
  • Testlist - ""
  • Where - ""
  • Config - ""
  • ProcessModel - DefaultProcessModel
  • Agents - None
  • Domain - DefaultDomainModel
  • Framework - ""
  • Force32bit - false
  • DisposeRunners - false
  • Timeout - 2147483647 milliseconds
  • Seed - -1 (negative seed is ignored by NUnit and is not sent to it)
  • Workers - None
  • StopOnError - false
  • WorkingDir - ""
  • OutputDir - ""
  • ErrorDir - ""
  • ResultSpecs - "TestResult.xml"
  • ShadowCopy - false
  • TeamCity - false
  • ErrorLevel - Error
  • TraceLevel - Default (By default NUnit3 sets this to off internally)
  • Params - "" ## Defaults