Set minimum coverage for entire project with exclusion

36 views
Skip to first unread message

abhsk prdhn

unread,
Aug 23, 2017, 1:43:48 AM8/23/17
to JaCoCo and EclEmma Users
 I have a multimodule project , so this check is for individual project. I want to set min code coverage check for entire project and not for individual project. it is fine if some module has 30% and some 90% and some to be excluded but i want my build to fail only if overall code coverage is < 80% and not check for individual project
How do we do this using Jacoco.

Marc Hoffmann

unread,
Aug 23, 2017, 5:18:05 AM8/23/17
to jac...@googlegroups.com

Hi,

I assume you're talking about a Maven build, right? For Maven you can only check on individual projects. There is an aggregate-report goal to create a combined report for multiple projects which will also show totals for all projects. But there is no aggregate check.

If you really want to integrate this in your buid you might use our Ant tasks to create a single report from all classes and exec files. We recommend using other tools for quality checks like SonarQube which will also give you a nice timeline etc.

Regards,
-marc

 

 

 

On 2017-08-23 07:43, abhsk prdhn wrote:

 I have a multimodule project , so this check is for individual project. I want to set min code coverage check for entire project and not for individual project. it is fine if some module has 30% and some 90% and some to be excluded but i want my build to fail only if overall code coverage is < 80% and not check for individual project
How do we do this using Jacoco.

 

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/a5958acf-dd9c-4e32-8c23-563a2c4f76ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages