Issue with Coverage view in Eclipse

3,098 views
Skip to first unread message

Frederic Filiatrault

unread,
Oct 25, 2016, 10:37:10 AM10/25/16
to JaCoCo and EclEmma Users
Hi,

For an unknown reason, the Coverage View in Eclipse stopped showing results.  Was working fine yesterday, but today, nope. I googled a bit but found nothing which makes me think it's a simple thing I can't figure it out.  I tried several things
  • Uninstall and re-install EclEmma plugin (I also manually delete the com.mountainminds.* folders)
  • Verified the exclusion list (nothing there)
  • Recreated the coverage configuration (which always worked fine)
  • Only my src folder is selected in the coverage folder (as it always have  been)
  • There's a VM argument passed : "-ea".  That was always there
  • In preferences, 
    • everything is checked on the 1st 4;
    • Default scope is "source folder only"
    • Coverage runtime: 
      • Includes : *
      • Excludes : [nothing]
      • Exclude classloaders: sun.reflect.DelegatingClassLoader
  • I restored default values in preferences -> Java -> Code Coverage, no good
  • Of course, All unit test (259) are green
  • I also tried to select some options for the view menu of the Coverage View, no good
  • Right-click on Coverage View only gives me "Import session". everything else is grayed.
Again, all these are default values. Using Neon.1 on Macbook Pro (Sierra).  Using JUnit 4, gradle.

Meanwhile, I'm using Jacoco in terminal but I really missed having the coverage in Eclipse.

Only thing I did not do was a complete reinstall of Eclipse (which is not an option).

Any suggestions would be appreciated.  Thx in advance!

F.

Marc R. Hoffmann

unread,
Oct 26, 2016, 3:11:50 AM10/26/16
to jac...@googlegroups.com
Hi Frederic,


> Right-click on Coverage View only gives me "Import session". everything else is grayed.

This means there is no coverage session at all. Probably you run into the following issue from the FAQ:

http://www.eclemma.org/faq.html#trouble06

The Coverage view stays empty and there is no source highlighting. Why?

In Eclipse preferences there is an option Launch in debug mode when workspace contains breakpoints under Run/DebugLaunching. If this option is enabled and there are breakpoints in your workspace coverage mode will not work, because it is automatically replaced with debug mode. Set this option to Never if you want to run code coverage analysis.


Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/2b5fb172-2059-4391-a66c-13a704e20377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


frederic.f...@gmail.com

unread,
Oct 26, 2016, 7:09:44 AM10/26/16
to JaCoCo and EclEmma Users
right on!!!!!! thk you so much! really appreciated!
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages