Error while loading coverage session (code 5001)

Viewed 15933

I got the following error when I am trying to check coverage using EclEmma, please help me out:

Error while loading coverage session (code 5001). Error while analyzing package fragment root java at F/solo-repository/target/test-classes (code 5007). File not found: D:\RDM Services\solo-repository\target\test-classes\com\charter\solo\account\repository\AccountBillInformationRepositoryTest.class. D:\RDM Services\solo-repository\target\test-classes\com\charter\solo\account\repository\AccountBillInformationRepositoryTest.class (The system cannot find the path specified)

8 Answers

I had the exact same problem, here is how i fixed it:

  • Update maven project
  • Build the project with mvn clean install and make sure 'Skip Tests' is unchecked
  • Now run the coverage

The reason for this error is that it can't find the class in the target folder which it won't until you build the project along with all the test case class files that you want coverage on. Hope this helps!

another tips that work for me was delete the temporal eclipse folder .metadata... etc.

Then i delete my project from my Workspace(Not the disk), I have imported the project again en voila !! Its Work my coverage!!!!

Simply Cleaning or Updating the project works in most of the cases!

This worked for me.

Right click a source folder select Build Path > Configure Output Folder... Select "Project's default output folder" (even if it happens to be the same path entered in "Specific output folder") Click OK Refresh the project.

Keep 'skip test' checkbox un-checked during project build using eclipse-maven plugin. And after that run the coverage. This worked for me.

Go to Coverage Configurations-> select only required one.

Related