[ 
http://jira.codehaus.org/browse/MCOBERTURA-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244087#action_244087
 ] 

Leeland Artra commented on MCOBERTURA-70:
-----------------------------------------

This issue persists even in version 2.4 release. If anyone has it working such 
that a calling "mvn clean cobertura:cobertura" produces accurate coverage 
reports would you please post the relevant POM sections.

I have found that running "mvn clean cobertura:cobertura" yeilds a coverage 
report of 0%, each subsequent run of just "mvn cobertura:cobtertura" adds the 
prior test set values to the test reports. So if a section of code is called 3 
times the first pass after a clean is shown as 0, the second pass it is shown 
as 3, the third pass 6, and so on.

> I must run 'mvn cobertura:cobertura' twice to get a valid coverage report.
> --------------------------------------------------------------------------
>
>                 Key: MCOBERTURA-70
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-70
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Gary Kind
>         Attachments: CoberturaDataUtil.java, CoberturaReportMojo.java, 
> ConditionalSaveTimer.java, ProjectData.java
>
>
> Our nightly build does:
> 'mvn clean'
> 'mvn install'
> 'mvn cobertura'
> 'mvn site'
> We have found that for the last couple of months (or possibly more), our 
> coverage reports are showing 0% coverage on all tests. I have found that we 
> have to run 'mvn cobertura:cobertura' TWICE! to get a valid coverage report.  
> What gives?  Is there any workaround?  I have tried all sorts of things but 
> nothing really works.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to