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

OpenCover Module

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

Types

Type Description

HideSkippedType

OpenCoverParams

OpenCover parameters, for more details see console application usage.

RegisterType

ReturnTargetCodeType

Functions and values

Function or value Description

OpenCoverDefaults

Full Usage: OpenCoverDefaults

Returns: OpenCoverParams

OpenCover default parameters

Returns: OpenCoverParams

getVersion setParams

Full Usage: getVersion setParams

Parameters:

Show version OpenCover

setParams : (OpenCoverParams -> OpenCoverParams) option

Function used to overwrite the default OpenCover parameters.

Example


 OpenCover.Version None
      OpenCover.Version (fun p -> { p with TestRunnerExePath = "./Tools/NUnit/nunit-console.exe" })

run setParams targetArgs

Full Usage: run setParams targetArgs

Parameters:
    setParams : OpenCoverParams -> OpenCoverParams - Function used to overwrite the default OpenCover parameters.
    targetArgs : string - Test runner arguments.

Runs OpenCover on a group of assemblies.

setParams : OpenCoverParams -> OpenCoverParams

Function used to overwrite the default OpenCover parameters.

targetArgs : string

Test runner arguments.

Example


 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"