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

ReportGenerator Module

Contains a task which can be used to run ReportGenerator, which converts XML reports generated by PartCover, OpenCover or NCover into a readable report in various formats.

Example


 open Fake.Testing

 Target.create "Generate Reports" (fun _ ->
   !! "**/opencover.xml"
   |> Seq.toList
   |> ReportGenerator.generateReports (fun p -> { p with TargetDir = "c:/reports/" })
 )

Types

Type Description

LogVerbosity

Logging verbosity passed to ReportGenerator

ReportGeneratorParams

ReportGenerator parameters, for more details see this link.

ReportType

The type of the report to generate

Functions and values

Function or value Description

ReportGenerator.generateReports setParams reports

Full Usage: ReportGenerator.generateReports setParams reports

Parameters:

Runs ReportGenerator on one or more coverage reports.

setParams : ReportGeneratorParams -> ReportGeneratorParams

Function used to overwrite the default ReportGenerator parameters.

reports : seq<string>

Coverage reports.

Example


 !! "**/opencover.xml"
         |> Seq.toList
         |> ReportGenerator.generateReports (fun p -> { p with TargetDir = "c:/reports/" })