Displaying code coverage results in Idea 7
Hi,
I occasionaly use IntelliJ IDEA 7. When I run unit tests (using the JUnit Debug/run in Idea), I can enable collecting coverage data for Emma code coverage tool. However, even after the debug/run session finishes, the item Analyze > Code Coverage Data stays disabled.
How can I display the code coverage results - mark lines in the Editor and see percentages in the project explorer view ?
请先登录再写评论。
I was experiencing the same problem, then I realized that code coverage apparently gets recorded only when RUNNING my unit tests, not when debugging them. Is this normal?
Also, after running it once and doing ctrl-alt-f6, the "coverage suites" dialog pops up, but nothing happens when clicking or pressing enter on the recorded entry...
Yep, the Emma data collection can cause the debugger to behave really bizarrely. I remember that you could do both in IDEA 6, but to stop problematic debugging they only allowed data collection when running applications in IDEA 7.