Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:Maven 2.0.3.
cobertura-maven-plugin-2.0-20060331.055400-6
surefire 2.2-SNAPSHOT
-
Number of attachments :
Description
I have an EJB 3 project that runs JUnit tests by invoking a JUnit TestSuite that starts up the JBoss EJB 3 embeddable, runs the unit tests in the container, shuts down the container.
I explicitly deploy the cobertura instrumented classes to the EJB 3 container.
When cobertura produces its report, it reports that there is 0% code coverage. All the unit tests run correctly and pass. The generated cobertura.ser file is created in the base directory of the project. No stack traces or errors appear in mavens output. I am running
mvn clean cobertura:clean cobertura:cobertura
If I take the generated cobertura.ser file, download cobertura 1.7 and run cobertura-report.sh script against the cobertura.ser I get the correct code coverage report.
So, something is going wrong when the report is running, since the ser file is correct when run with cobertura at command line.
Unfortunately I cannot attach a test case as we had to manually add lots of EJB 3 embeddable jars to our repo that are not available on ibiblio. So any test case I would upload would not build. ![]()
If you require any further information I can provide it.
Hi, I also had the same problem, What is the version of your maven-surefire-plugin? By that time, I am using maven-surefire-plugin 2.1.4-SNAPSHOT.
I just changed the version of maven-surefire-plugin in the metadata back to 2.1.3-SNAPSHOT and it worked.
So I guess this issue should be move to MSUREFIRE