This is part of the Fake.DotNet.Testing.OpenCover module.

OpenCover

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

Nested types and modules

TypeDescription
HideSkippedType
OpenCoverParams

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

RegisterType
ReturnTargetCodeType

Functions and values

Function or valueDescription
getVersion(setParams)
Signature: setParams:(OpenCoverParams -> OpenCoverParams) option -> unit

Show version OpenCover

Parameters

  • setParams - Function used to overwrite the default OpenCover parameters.

Sample

1: 
2: 
 OpenCover.Version None
 OpenCover.Version (fun p -> { p with TestRunnerExePath = "./Tools/NUnit/nunit-console.exe" })
union case Option.None: Option<'T>
OpenCoverDefaults
Signature: OpenCoverParams

OpenCover default parameters

run 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.Run (fun p -> { p with TestRunnerExePath = "./Tools/NUnit/nunit-console.exe" }) 
    "project-file.nunit /config:Release /noshadow /xml:artifacts/nunit.xml /framework:net-4.0"