0

I changed my build path to

my-project/build

in order Eclipse to take the class files from the Gradle execution, but when I rerun coverage analysis I faced this problem.

Error while loading coverage session (code 5001). Error while analyzing package fragment root java at my-project/build (code 5007). Error while analyzing MyClass.class.

How to configure EclEmma in order to use class files from build, not bin folder?

Xelian
  • 16,680
  • 25
  • 99
  • 152
  • What is your default output folder (in _Project > Properties: Java Build Path_, tab _Source_ at the bottom)? Does changing the classpath of the coverage configuration work (_Run Coverage..._)? – howlger Oct 02 '17 at 18:55
  • IN my source option is my-project/build.(when ins my-project/bin coverage is working) How to change the classpath of the coverage configuration? – Xelian Oct 02 '17 at 19:00
  • Coverage configuration: via menu _Run > Coverage..._ or Ctrl+click _Coverage_ button in main toolbar. – howlger Oct 02 '17 at 19:03
  • I do not have such with STS. I do not why.. – Xelian Oct 03 '17 at 14:35
  • Switch to the _Java_ perspective. – howlger Oct 03 '17 at 14:37
  • Sorry. When I switch to Java Perspective Run->Covarage.. all src folders are marked. – Xelian Oct 03 '17 at 15:14
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/155847/discussion-between-howlger-and-xelian). – howlger Oct 03 '17 at 17:53

0 Answers0