Resolution: Won't Fix
Affects Version/s: None
Fix Version/s: None
Number of attachments :
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
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.