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

JaCoCo plugin should provide a way to verify that given code metrics are met #824

Closed
eriwen opened this issue Nov 8, 2016 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@eriwen
Copy link
Contributor

eriwen commented Nov 8, 2016

Users need a way to check that code coverage meets a given standard.

Expected Behavior

A provided task or task configuration such that one can choose to fail the build if a certain level is not achieved with the current build.

Current Behavior

No coverage verification built-in.

Context

This is a very highly voted feature request.

The implementation shouldn't be too hard - the underlying Ant tasks provide a way to pass appropriate values and fail the build if metrics are not met.

There is also an incomplete attempt at this that can be learned from.

@eriwen eriwen added a:feature A new functionality help-wanted labels Nov 8, 2016
@jiakuan
Copy link

jiakuan commented Nov 8, 2016

In-built support should be very helpful. I've been using a workaround with some custom code for this purpose. Sample Jacoco configuration can be found here: https://github.com/jiakuan/apuava/blob/master/gradle/jacoco.gradle

@bmuschko
Copy link
Contributor

@bmuschko
Copy link
Contributor

bmuschko commented Dec 7, 2016

PR: #983

@bmuschko
Copy link
Contributor

bmuschko commented Dec 21, 2016

The pull request has been merged and will be released with the next version of Gradle. Enjoy!

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

No branches or pull requests

3 participants