This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 201206280002 ] [ JDK VERSION : 1.7.5 ] I have a maven project with JaCoCo configured <!-- code coverage --> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.5.7.201204190339</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> and selected the "Code coverage->Collect and Display Code Coverage" setting in the project context menu. When running all tests for the project by right clicking on the project and selecting "Test" all tests are run with maven and the agent is active: [jacoco:prepare-agent] argLine set to -javaagent:/home/tkruse/.m2/repository/org/jacoco/org.jacoco.agent/0.5.7.2012041 90339/org.jacoco.agent-0.5.7.201204190339-runtime.jar=destfile=...........target /jacoco.exec The repot shows "No data -- have you run your code yet?" Only when I click on the report to "Run All Tests" the report gets filled with data. When having a java file open for which an accompanying test exists, the "Test" button does not fill in coverage data neither, the "All Tests" button works, though. It is a little inconvenient to always run all tests to check for the coverage change of a single file.
most probably an issue with the code coverage modules. partly duplicate of issue 214236. jacoco should work better than cobertura in the sense that it doesn't need extra compilation, just injects the agent.
Created attachment 121581 [details] Sluggishness in RC1
Created attachment 121582 [details] self profiling of 20 seconds showing 13,3 seconds spent in reference handler
Comment on attachment 121581 [details] Sluggishness in RC1 sorry attached to wrong bug - please remove the attachment
BUILD # : 201206272359 Coverage data is not collected from regular "test" runs (single test case or whole project, just when "Run All Tests" on the code coverage report view the data is shown.