[
http://jira.codehaus.org/browse/MPCLOVER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103593
]
Jeff Black commented on MPCLOVER-59:
------------------------------------
Additional info...swapping the order of the reports in the <reports> section of
project.xml is a workaround for this problem.
To reproduce this behaviour, using the
testSiteReportAndGenerationOfDifferentFormats test case:
Causes the issue initially raised by this JIRA:
=====
<reports>
<report>maven-junit-report-plugin</report>
<report>maven-clover-plugin</report>
</reports>
This works as expected:
=====
<reports>
<report>maven-clover-plugin</report>
<report>maven-junit-report-plugin</report>
</reports>
Jeff
> clover report does not include instrumented test lines of code with junit
> report included
> -----------------------------------------------------------------------------------------
>
> Key: MPCLOVER-59
> URL: http://jira.codehaus.org/browse/MPCLOVER-59
> Project: Maven 1.x Clover Plugin
> Issue Type: Bug
> Affects Versions: 1.11.2
> Environment: windows XP/cygwin
> maven 1.1
> maven-junit-report-plugin 1.5.1
> Reporter: Jeff Black
>
> Running the clover report as the only project report to obtain source lines
> of code works with the property maven.clover.instrument.tests set = true.
> However, if the project also specifies the junit report
> (<report>maven-junit-report-plugin</report>), then the clover report will not
> include test lines of code, even with the property
> maven.clover.instrument.tests=true.
> I looked at the junit-report-plugin plugin.jelly, put nothing jumped out at
> me as being suspect along the lines of modifying maven.test.compile.src.set,
> for example.
> This is can reproduced by adding the
> <report>maven-junit-report-plugin</report> to the existing clover plugin test
> case:
> testSiteReportAndGenerationOfDifferentFormats
--
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