• Post Reply Bookmark Topic Watch Topic
  • New Topic

Code coverage report through maven/cobertura  RSS feed

 
Rajesh Santhanakrishnan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to generate code coverage report through maven/cobertura plug in. But even if 1 case is failing, it is not generating test coverage report. Is there a specific goal which will generate code coverage even if the test case fails
 
Tim Cooke
Marshal
Posts: 4044
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds reasonable to me. If you have a failing test, then who cares about coverage? Fix your test first and worry about coverage later.

As far as I know, there is no goal that will generate a coverage report in the presence of failing tests. It makes no sense to do that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!