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

Show only coverage percentage #28

Closed
georgepaoli opened this issue Feb 20, 2018 · 3 comments
Closed

Show only coverage percentage #28

georgepaoli opened this issue Feb 20, 2018 · 3 comments

Comments

@georgepaoli
Copy link

georgepaoli commented Feb 20, 2018

Please, is possibile show only coverage percentage in a output report?

like this:
$ dotnet minicover report --workdir ../ --threshold 90 --only-coverage-percentage

output:
16.54% covered

I intend to use it on Gitlab: https://gitlab.com/help/user/project/pipelines/settings#test-coverage-parsing

Thank you for this great job!

@lucaslorentz
Copy link
Owner

Hey @georgepaoli
Thanks for the feedback.

I checked gitlab docs, and it supports specifying your own regex to find the coverage.
You can change the regex and then you don't need to change anything on minicover.

Use this regex: All files.*\s(\d+.\d+%)
http://rubular.com/r/e9Sq04plgm

But if you still want that feature on minicover, a PR is very welcome.

@georgepaoli
Copy link
Author

Thank you very much @lucaslorentz !

a PR is very welcome

Yes, I need to learn more your code.

Thanks for the invitation!

@grigorov
Copy link

Sorry, i fix regex:

All files.*\s(\d+.\d+.%)

http://www.rubular.com/r/QYtORG4yCm

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

3 participants