ReportGenerator

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.

Sample

1: 
2: 
3: 
4: 
5: 
6: 
7: 
open Fake.Testing

Target.create "Generate Reports" (fun _ ->
  let parameters p = { p with TargetDir = "c:/reports/" }
  !! "**/opencover.xml"
  |> ReportGenerator.generateReports parameters
)
namespace Fake
namespace Fake.Testing
module ReportGenerator

from Fake.Testing
val generateReports : setParams:(ReportGenerator.ReportGeneratorParams -> ReportGenerator.ReportGeneratorParams) -> reports:string list -> unit

Nested types and modules

TypeDescription
LogVerbosity
ReportGeneratorParams

ReportGenerator parameters, for more details see: https://github.com/danielpalme/ReportGenerator.

ReportType

Functions and values

Function or valueDescription
ReportGenerator.generateReports(...)
Signature: setParams:(ReportGeneratorParams -> ReportGeneratorParams) -> reports:string list -> unit

Runs ReportGenerator on one or more coverage reports.

Parameters

  • setParams - Function used to overwrite the default ReportGenerator parameters.
  • reports - Coverage reports.