Comments (12)
I'd really love this too. We currently use Clover for this but would like to change to Jacoco and this is holding us.
Thanks for a great tool.
from jacoco.
This feature would make JaCoCo a compelling solution for Continuous Delivery, as it would allow 1) the build pipeline to break if there isn't enough coverage, and 2) since the on-the-fly coverage is fast and doesn't affect the generated JAR files, code coverage can be integrated into the normal test phases, which means you don't need to rerun the tests for code coverage. In sum, a killer feature for Continuous Delivery.
from jacoco.
Wakaleo, do you have an idea how to specify "enough coverage"? Percentage of what metric? Is the limit for the overall project, per package or per class?
Thx,
-marc
from jacoco.
Ideally, you would want to be able to set minimum values of percentage
instruction and branch coverage overall, per package and per class, as you
can have different constraints at different levels.
Here is how the Maven Cobertura Plugin does things:
http://mojo.codehaus.org/cobertura-maven-plugin/usage.html#Check
Cheers
- John.
On 28 September 2012 00:52, Marc R. Hoffmann [email protected]:
Wakaleo, do you have an idea how to specify "enough coverage"? Percentage
of what metric? Is the limit for the overall project, per package or per
class?Thx,
-marc—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-8938644.
John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | [email protected]
from jacoco.
The 'check' goal I've added with Pull Request #26 gives you a configuration similar to the cobertura plugin except it doesn't have the regex functionality. I'm sure that could be added later on.
You can see an example configuration here:
https://github.com/klieber/jacoco/blob/master/jacoco-maven-plugin.test/it/it-check-passes/pom.xml
In this example the check requires 100% coverage of everything.
from jacoco.
That would do fine (the regex is more advanced, so could wait til later
on). Is there an ETO for the next release?
On 29 September 2012 08:04, Kyle Lieber [email protected] wrote:
The 'check' goal I've added with Pull Request #26https://github.com/jacoco/jacoco/issues/26gives you a configuration similar to the cobertura plugin except it doesn't
have the regex functionality. I'm sure that could be added later on.You can see an example configuration here:
https://github.com/klieber/jacoco/blob/master/jacoco-maven-plugin.test/it/it-check-passes/pom.xml
In this example the check requires that 100% coverage of everything.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-8996729.
John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | [email protected]
from jacoco.
We just got sandbagged by Java 7 and cobertura - hate to be a pest but is there a release pending or alternatively is there a repo containing 0.6.1-SNAPSHOT including this?
from jacoco.
I haven't heard anything on whether or not the JaCoCo developers plan to merge it in or not. Based on this discussion from their mailing list, it looks like they haven't decided if they like the implementation or not.
from jacoco.
Thanks for the response
from jacoco.
For sure we plan to provide such functionality. Just be patient ;)
from jacoco.
@Godin - Of course :-) I know this is all volunteer and I appreciate greatly all the hard work that is being put towards this. To date it looks like there is a release ~ every 30 days. That works out fine and I can wait. I just have to get my people to be proactive with their coverage reports.
from jacoco.
Another vote for this. I'm in the process of converting our coverage over from cobertura and this is one remaining thing - as our ci process uses code coverage as one of it's gating factors for a "successful" build. Thanks!
from jacoco.
Related Issues (20)
- Allow exclusions per rule or per limit HOT 1
- Project gets 0% coverage after switching from jacoco 0.8.7 to jacoco 0.8.10 HOT 6
- Plugin Maven 4 Compatibility HOT 1
- Jacoco agent not reading classes (0 coverage, 0 entries on sessions page) with tomcat .. but generates .exec file on tomcat bootup HOT 2
- There is a conflict between JaCoCo and Lettuce. HOT 2
- A different version of class was executed at runtime HOT 1
- Not able to use maven jacoco offline mode to calculate UT coverage with mockito `@Spy` annotation HOT 2
- Need Actaul Branch coverage report as output HOT 4
- Why does Jacoco report for my Kotlin data class getter has a postfix?
- Why does Jacoco report for my Kotlin data class getter has a postfix? The property name is radius, but in the report the getter is shown as getRadius-ZnsFY2o().
- when i exxcuted connectedAndroidTest PCOVERAGE_ENABLE=true , it failed, Execution failed for task ':playground:jacocoCommonDebug'. > A failure occurred while executing com.android.build.gradle.internal.tasks.JacocoTask$InstrumentJarAction > Unable to instrument file with Jacoco: /Users/...debug/58.jar HOT 4
- Jacoco includes coverage of pattern switch exception paths which may not be possible to cover. HOT 2
- Publish version 0.8.11 HOT 1
- Update to ASM 9.6 HOT 6
- Reports contain invalid line="0" when using flatMapLatest() and combine() Kotlin coroutines functions HOT 5
- Option to inline CSS and JS code into HTML code coverage reports HOT 3
- Update `KotlinInlineFilter` for `crossinline`
- Exception while trying to generate report from exec file in jacoco 0.8.10 HOT 1
- A documentation is missing explaining how to create an aggregated maven site report HOT 6
- jacococli get error that Invalid execution data file while reporting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jacoco.