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

How to enforce covrage #14

Open
RaynDol opened this issue Nov 21, 2018 · 1 comment
Open

How to enforce covrage #14

RaynDol opened this issue Nov 21, 2018 · 1 comment

Comments

@RaynDol
Copy link

RaynDol commented Nov 21, 2018

Hi,

Very nice repo!

  1. Is there a way to enforce coverage like above 90% otherwise the build should failed (travis) ?
  2. when I use your tool it generate a new file with the following output

mode: set go-myproject/main.go:10.13,11.46 1 0 go-myproject/main.go:11.46,14.3 2 0

what does it mean and how should I run it ?

Thanks

@dave
Copy link
Owner

dave commented Dec 15, 2018

Hey sorry for taking so long to reply... Totally missed this.

There's no way to enforce a percentage, although this would be a good feature. Right now you can enforce 100% coverage with the -e flag, but not a particular percentage.

The file it generates is a standard code coverage file. This can be loaded into editors or uploaded to an online code coverage viewer such as http://codecov.io/ - check out the Continuous Integration section in the readme for instructions on how to set that up.

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

No branches or pull requests

2 participants