This is part of the Fake.Testing.ReportGenerator module.

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 _ ->
  !! "**/opencover.xml"
  |> Seq.toList
  |> ReportGenerator.generateReports (fun p -> { p with TargetDir = "c:/reports/" })
)
namespace Fake
namespace Fake.Testing
module Seq

from Microsoft.FSharp.Collections
val toList : source:seq<'T> -> 'T list
module ReportGenerator

from Fake.Testing
val generateReports : setParams:(ReportGenerator.ReportGeneratorParams -> ReportGenerator.ReportGeneratorParams) -> reports:seq<string> -> 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:seq<string> -> unit

Runs ReportGenerator on one or more coverage reports.

Parameters

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