Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage to build #34

Open
relentless opened this issue Aug 19, 2014 · 4 comments
Open

Add code coverage to build #34

relentless opened this issue Aug 19, 2014 · 4 comments

Comments

@relentless
Copy link
Collaborator

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
Copy link
Collaborator Author

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

@haf
Copy link
Owner

haf commented Apr 15, 2018

see haf/expecto#219 (comment)

@TheAngryByrd
Copy link

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

@TheAngryByrd
Copy link

TheAngryByrd commented May 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants