0

Every-time I run my program Eclipse also runs coverage how can I turn this off please.

I followed this answer but it only clears the coverage highlights and next time it runs coverage again.

Clearing coverage highlighting in Eclipse

enter image description here

maloomeister
  • 2,461
  • 1
  • 12
  • 21
Dave
  • 97
  • 8
  • 1
    How are you running your programs? Usually in the eclipse menu under "Run" you can select whether you just want to "Run" or actually have "Coverage" checked as well. – OH GOD SPIDERS Nov 17 '20 at 14:40
  • I just run them in Eclipse `ctrl + shift + F11`, I can find any check box in the Run menu – Dave Nov 17 '20 at 14:47
  • 2
    @Dave `CTRL + SHIFT + F11` will run coverage. `CTRL + F11` is a normal run without code coverage. But you can also run your program by clicking the corresponding button in the tool bar. There is a button for debugging, next to it the default run (without coverage) and next to it, the coverage run. – maloomeister Nov 17 '20 at 14:48
  • Thanks, silly mistake – Dave Nov 17 '20 at 14:49
  • Just right-clicking on the java file (in eclipse) you want to run should also bring up a context menu where you can choose to "Run as", "Debug as" or get "Coverage as". – OH GOD SPIDERS Nov 17 '20 at 14:51
  • Check this solution... https://stackoverflow.com/questions/10038602/in-eclipse-eclemma-coverage-view-not-being-shown – Rafael Pizao Nov 17 '20 at 14:55

0 Answers0