-
Notifications
You must be signed in to change notification settings - Fork 20k
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
Coverage report not there #14
Comments
I am having the same issue. Any ideas? |
He has modified the pom to only report when you invoke -Pmetrics.
and it should work. |
I am running into the same issue. I have changed my line to: javadoc:javadoc cobertura:cobertura -Pmetrics and I am still getting this warning: [WARNING] Is there something key I'm missing? |
I have the same problem too..Any solutions? |
The warning shouldn't stop the build working correctly. On 13 March 2013 20:30, technorat [email protected] wrote:
John Smart | Wakaleo Consulting | +61 407 247 642 |
I am having similar problem. coverage.xml is not created. And, I am getting the following error. [ERROR] Oct 30, 2013 1:36:07 PM net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler loadCoverageData [INFO] Cobertura Report generation was successful. |
I've been stuck on this problem for days and am now getting quite frustrated at the book and that there is no clear fix for this. I'm using the "javadoc:javadoc cobertura:cobertura -Pmetrics" options as explained before which does not help. I'm on Jenkins 1.540 Any thoughts?? I'm getting this: [ERROR] Nov 18, 2013 8:32:04 PM net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler loadCoverageData [Cobertura] Publishing Cobertura coverage report... |
It looks like the Maven Cobertura plugin is extremely buggy with more recent versions of Maven (possibly). The documented configuration doesn't work. The workaround is to use jacoco instead of cobertura. Jacoco is run automatically when you run "mvn verify". In Jenkins, you can use the Jacoco plugin (https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin). To configure this plugin, use the following values: Path to exec files: /target/.exec |
Awesome, this worked first run!! I really appreciate the quick reply. Been stuck on this for a bit and didn't want to move any further in my book until I got past this. :) It didn't find any exec files however so I'm playing around with the path settings... I dont' see any .exec files in /target so i'm trying /target/.exec which seems to work and finds 3 exec's but Im not sure what the lines mean... Also, does the ** mean any directory? |
For Path to exec files: I needed **/target/.exec Otherwise JaCoCo complains about "Expecting Ant GLOB pattern" |
I have used the following in the post build action section to configure the Jacoco Coverage Report and it seems, it is working. |
I am still not able to build it successfully. I still face below error INFO: Cobertura: Loaded information on 2 classes. [INFO] Cobertura Report generation was successful. |
A hint for people struggling with JaCoCo path settings: mind the effect of unintended Markdown markup in wakaleo's post above ;-) The following settings actually result in nice code coverage reports (trend, summary, and annotated source ):
|
See: For a solution. It boils down to
|
TG9541's suggestion works for me (nice catch!), and the build runs, but the JaCoCo code coverage results are all 0%:
|
Thanks to everybody for clarifications, the JaCoCo works well. |
I'm trying to follow the book. Maven version 3.0.4.
I'm getting the following warnings:
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-core:jar:0.9.67-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ line 16, column 21
and
[WARNING] The POM for org.easyb:maven-easyb-plugin:jar:1.5 is missing, no dependency information available
but the following is very strange.
Cobertura: Loaded information on 2 classes.
Report time: 174ms
[INFO] Cobertura Report generation was successful.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS [4.259s]
[INFO] gameoflife-build .................................. SUCCESS [0.833s]
[INFO] gameoflife-core ................................... SUCCESS [3.581s]
[INFO] gameoflife-web .................................... SUCCESS [2.567s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.657s
[INFO] Finished at: Wed Dec 19 05:11:59 CET 2012
[INFO] Final Memory: 18M/45M
[INFO] ------------------------------------------------------------------------
Publishing Javadoc
Recording test results
CodeCover: looking for coverage reports in the provided path: **/target/site/cobertura/coverage.xml
CodeCover: no coverage files found in workspace. Was any report generated?
Build step 'Record CodeCover coverage report' changed build result to FAILURE
Any ideas?
The text was updated successfully, but these errors were encountered: