File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did it Erez

Here's the change i made.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic