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

OpenCoverHelper

Contains a task which can be used to run OpenCover on .NET assemblies.

Nested types and modules

TypeDescription
OpenCoverParams

OpenCover parameters, for more details see: https://github.com/OpenCover/opencover/wiki/Usage#console-application-usage.

RegisterType

Functions and values

Function or valueDescription
OpenCover setParams targetArgs
Signature: setParams:(OpenCoverParams -> OpenCoverParams) -> targetArgs:string -> unit

Runs OpenCover on a group of assemblies.

Parameters

  • setParams - Function used to overwrite the default OpenCover parameters.
  • targetArgs - Test runner arguments.

Sample

1: 
2: 
 OpenCover (fun p -> { p with TestRunnerExePath = "./Tools/NUnit/nunit-console.exe" }) 
    "project-file.nunit /config:Release /noshadow /xml:artifacts/nunit.xml /framework:net-4.0"
OpenCoverDefaults
Signature: OpenCoverParams

OpenCover default parameters