Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't get the code coverage output using Cobertura + Testng + Ant

 
sumit anand kumar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written tests using Testng + Ant. I can get a code coverage report using a eclipse plugin however i am not able to get it through cobertura. Please help.
One thing more to know. Another ant script runs first and places my source compiled jar file to /testlib. Master executer task is cb.html

 
Erez Mazor
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I responded to this here. You need to correct your cobertura data file definition.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Erez Mazor and welcome to Javaranch! Thanks for posting an answer!
 
sumit anand kumar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did it Erez

Here's the change i made.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic