Yes I have tried this the Python Tool cover2cover.py however, i am not been able to successful to convert Jacoco to cobertura.
I did following, please help me what should be correct way.
We are actually trying measure the code coverage for Regression Tests, so the tests are run pre-production setups.
1) The application is Jboss based, so we have configured Jboss with java agent jar to dump the .exec file on completion of tests.
2) We run the Tests and stop the Jboss server, it dumps the .exec file.
3) Then we copy the jacoco.exec file to a Developer setup where we have src code.
4) I have used the ant script to generate the report out of the collected jacoco.exec file. It generated couple of files. report.xml,report.csv , index,html,jacoco-session.html and respective class folder html files under target/site/jacoco/,
ant report
Now the question is which file i should use for converting Jacoco to cobertura? is it report.xml ?
I tried this way but i don't see any cobertura.xml generated.
python cover2cover.py ../Jacoco/target/site/jacoco/report.xml /root/secmgt/
the console printed the below:
<?xml version="1.0" ?>
<coverage branch-rate="0.181364665237" complexity="81366.0" line-rate="0.277190735404" timestamp="1493102622"><sources><source>/root/secmgt/</source></sources><packages /></coverage>
to convert to cobertura, i have tried