Error while loading coverage session (code 5001)

亡梦爱人 提交于 2019-12-05 14:09:52
Priyesh

I had similar problem. This is what I did.

  1. Refreshed the project.
  2. Updated the maven project.
  3. Configured the Coverage. You may want to include some additional jars if you are trying to get the coverage over some dependencies.

It worked for me.

I had the same error. The suggestions in this answer did not fix it for me. The thing that finally did fix it was:

  • Right click a source folder and 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

It seems a bit nonsensical, but did the trick for me.

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!

Go to Coverage Configurations-> select only required one.

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!