Issue Type: Bug Bug
Assignee: Ognjen Bubalo
Components: jacoco
Created: 25/Nov/13 12:29 PM
Description:

I have a maven multi module project and I want my build to fail if code coverage is insufficient.

I'm using jacoco maven plugin for this, I had no problem with local builds but when building my project on Jenkins I have found jacoco reports to be inconsistent.

This is a blocking problem to me because the build fails when coverage expectations are not met.

Here's two extract of failed build with no SCM changes between them.

build #89

[WARNING] Insufficient code coverage for COMPLEXITY: 60,52% < 63,14%
[WARNING] Insufficient code coverage for METHOD: 64,28% < 67,84%

build #90

[WARNING] Insufficient code coverage for BRANCH: 70,00% < 75,00%
[WARNING] Insufficient code coverage for COMPLEXITY: 57,89% < 63,14%
[WARNING] Insufficient code coverage for METHOD: 64,28% < 67,84%

Previous build was successful with the same code coverage expectations.

I have tried with different jacoco versions (0.6.2.201302030002 and 0.6.3.201306030806) without luck.

I have reported this problem in jenkins issue tracker since I have only seen it my Jenkins build and not in my local builds but I may be wrong.

I understand this is not easy to fix or investigate, I just thought it was important to report it.

Kind regards,

Joel

Environment: Jenkins version: 1.523

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: C:\webintlab\apache-maven-3.0.5
Java version: 1.7.0_15, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_15\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows server 2008", version: "6.0", arch: "amd64", family: "windows"
Project: Jenkins
Priority: Critical Critical
Reporter: Joel Costigliola
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to