Http.fs icon indicating copy to clipboard operation
Http.fs copied to clipboard

Add code coverage to build

Open relentless opened this issue 11 years ago • 4 comments

It should be possible to add coverage to the build using something like OpenCover: http://fsharp.github.io/FAKE/apidocs/fake-opencoverhelper.html

I'm not sure what the best way to surface the results is, but just logging the overall coverage tin the FAKE script should do the job.

relentless avatar Aug 19 '14 19:08 relentless

There are now scripts in the CodeCoverage folder to calculate coverage and create an HTML report manually, still needs adding into build though.

relentless avatar Oct 27 '14 13:10 relentless

see https://github.com/haf/expecto/issues/219#issuecomment-374810994

haf avatar Apr 15 '18 19:04 haf

I'll have a better example soon using the msbuild tasks from AltCover.

TheAngryByrd avatar Apr 18 '18 01:04 TheAngryByrd

Here's what I have setup for code coverage with AltCover and Expecto. I do use the Expecto vs test runner to make msbuild play nice. https://github.com/TheAngryByrd/MiniScaffold/blob/test-coverage/Content/tests/Directory.Build.targets

TheAngryByrd avatar May 10 '18 00:05 TheAngryByrd