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.OpenCover instead (open Fake.Testing and use 'OpenCover.')

OpenCoverParams

Record Fields

Record FieldDescription
ExePath
Signature: string

(Required) Path to the OpenCover console application

Filter
Signature: string

A list of filters to apply to selectively include or exclude assemblies and classes from coverage results.

MergeByHash
Signature: bool

This option is used to merge the coverage results for an assembly regardless of where it was loaded assuming the assembly has the same file-hash in each location.

OptionalArguments
Signature: string

This options is used to add additional optional arguments, could be somthing like "-returntargetcode "

Output
Signature: string

The location and name of the output xml file. If no value is supplied then the current directory will be used and the output filename will be results.xml.

Register
Signature: RegisterType

Use this to register and de-register the code coverage profiler.

TestRunnerExePath
Signature: string

(Required) Path to the NUnit/XUnit console runner

TimeOut
Signature: TimeSpan

The timeout for the OpenCover process.

WorkingDir
Signature: string

The directory where the OpenCover process will be started.