Surefire reports are overwritten with results from the instrumented run.
-------------------------------------------------------------------------
Key: MCOBERTURA-103
URL: http://jira.codehaus.org/browse/MCOBERTURA-103
Project: Maven 2.x Cobertura Plugin
Issue Type: Bug
Affects Versions: 2.2, 2.3
Reporter: Evgeny Minkevich
When cobertura runs unit tests over instrumented classes the surefire tool
writes the report into the default folder
(${project.build.directory}/surefire-reports). Hence the proper unit test
report is getting overwritten with instrumented one.
My understanding from the previous discussions is that test results from
cobertura instrumented tests could differ from the actual results due to
synchronization and there fore I consider overwriting proper unit test report
to be a bug.
Quick fix would involve configuring a separate directory for instrumented test
result output, for instance -
${project.build.directory}/cobertura/surefire-reports.
It can be easily done by just adding a line into lifecycle.xml:
[ <configuration> ]
...
<reportsDirectory>${project.build.directory}/cobertura/surefire-reports</reportsDirectory>
...
[ </configuration> ]
The proper solution would probably involve a configuration parameter to be
defined in pom.
--
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