I am stuck integrating JaCoCo with sonar using Ant. Very new to this task, and integrating for the first time. I have gone through many links like
- https://github.com/SonarSource/sonar-examples/blob/master/projects/code-coverage/ut/ant/ut-ant-jacoco-runTests/build.xml
- http://docs.sonarqube.org/display/SONAR/Code+Coverage+by+Unit+Tests+for+Java+Project
- and many more.
I am trying to display result on another VM, and code is in my VM. Getting all sorts of errors related to JDK6,VM, and not able to analyze my package structure My que is do I need to define any specific project properties beside given in the above links for VM etc I would also like to include that my checkstyle, and findbugs is working like charm. Only need to integrate JaCoCo. Any information will be of great help.
If found my description is not up to my mark, kindly ask
Thanks for help
The following is an ANT build that is configured to run a junit unit test and use jacoco for code coverage reporting. The results are uploaded to Sonar and finally ivy is used to download 3rd party jars and manage classpaths.
Example
build.properties
build.xml
ivy.xml