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 support to fail build if coverage drops since last build #14

Open
deepujain opened this issue May 26, 2016 · 2 comments
Open

Add support to fail build if coverage drops since last build #14

deepujain opened this issue May 26, 2016 · 2 comments

Comments

@deepujain
Copy link

If you store coverage number for previous builds and fail build if the number of lower. This will ensure that every commit does not lower the coverage and is easy to hold a specific developer responsible for lowering the coverage so that test cases could be added.

What you think.

@shanbin
Copy link
Owner

shanbin commented May 26, 2016

I'd recommend using scoverage SBT plugin to achieve this, https://github.com/scoverage/sbt-scoverage#minimum-coverage, then we will have consistent behavior between local builds and Jenkins builds.

@deepujain
Copy link
Author

I do use minimum-coverage but I need to manually keep increasing the limit. And it does not rigorously allow to maintain coverage with every commit.

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