dotCover in FAKE

209 views Asked by At

Currently I'm migrating TeamCity build steps to FAKE and now I'm stuck on running tests with dotCover.

Could you provide an example how to properly use DotCover?

1

There are 1 answers

0
AudioBubble On BEST ANSWER

Finally found an answer to my question:

!! (buildDir @@ buildMode @@ "/*.Unit.Tests.dll") 
|> DotCoverNUnit 
    (fun dotCoverOptions -> { dotCoverOptions with 
            Output = artifactsDir @@ "NUnitDotCover.snapshot" }) 
    (fun nUnitOptions -> { nUnitOptions with
            DisableShadowCopy = true })