Skip to content

Commit

Permalink
Fake.Testing.ReportGenerator: Add report type Cobertura
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmonty committed Oct 17, 2018
1 parent 3827f95 commit 8e4d27e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/Fake.Testing.ReportGenerator/ReportGenerator.fs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type ReportType =
| LatexSummary
| Badges
| CsvSummary
| Cobertura

type LogVerbosity =
| Verbose = 0
Expand Down
9 changes: 9 additions & 0 deletions src/test/Fake.Core.UnitTests/Fake.Testing.ReportGenerator.fs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,13 @@ let tests =

Expect.equal commandLine
(sprintf "%s -reports:report1.xml;report2.xml -targetdir:targetDir -reporttypes:Html;MHtml -sourcedirs:source1;source2 -historydir:history -assemblyfilters:+a1*;-a2* -classfilters:+c1*;-c2* -filefilters:+f1*;-f2* -tag:mytag -verbosity:Verbose" expectedPath) "expected proper command line"

testCase "Test that ReportType Cobertura works" <| fun _ ->
let expectedPath, commandLine =
runCreateProcess (fun p ->
{ p with
ReportTypes = [ ReportGenerator.ReportType.Cobertura ] })

Expect.equal commandLine
(sprintf "%s -reports:report1.xml;report2.xml -targetdir:targetDir -reporttypes:Cobertura -verbosity:Verbose" expectedPath) "expected proper command line"
]

0 comments on commit 8e4d27e

Please sign in to comment.