Why does Cobertura report 0% coverage when run through the Eclipse plugin?

…衆ロ難τιáo~ 提交于 2019-12-05 18:26:14
Lydia Ralph

I found that this was a problem for me because I was compiling my source files without line numbers. If this is your problem, you will see

[cobertura-instrument] WARN visitEnd, No line number information found for class com.x.y.z.A.
Perhaps you need to compile with debug=true?

To solve this, add debug="true" debuglevel="vars,lines,source" to your javac command.

See also:

http://meera-subbarao.blogspot.co.uk/2008/07/cobertura-instrument-warn-visitend-no.html

How to remove specific Cobertura warning?

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