aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Can't get the code coverage output using Cobertura + Testng + Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Can Watch "Can New topic
Author

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

sumit anand kumar
Ranch Hand

Joined: Apr 28, 2010
Posts: 83
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

Joined: Dec 11, 2010
Posts: 1
I responded to this here. You need to correct your cobertura data file definition.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Erez Mazor and welcome to Javaranch! Thanks for posting an answer!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
sumit anand kumar
Ranch Hand

Joined: Apr 28, 2010
Posts: 83
Did it Erez

Here's the change i made.

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