I am new to clover and we have licensed version of clover. I have added a profile in my maven pom.xml file with the following line
<plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <configuration> <jdk>1.7</jdk> <generateHistorical>true</generateHistorical> <generateHtml>true</generateHtml> <!-- <generatePdf>true</generatePdf> --> <license><![CDATA[ GIVEN PROPER LICENSE ]]></license> <excludes> <exclude>**/*-mock-impl/**/*.java</exclude> </excludes> <properties> <clover.cloverDatabase>C:\\Users\\sample\\</clover.cloverDatabase> <clover.singleCloverDatabase>true</clover.singleCloverDatabase> </properties> <contextFilters>property</contextFilters> </configuration> </plugin>
then I have executed following maven commands :
1) mvn clean -U : this command worked fine and is a success
2) when I tried mvn clean clover2:setup install -Dmaven.test.skip=true -Dmaven.clover.singleCloverDatabase=false is not generating clover.db files for me
I want to get functional code coverage for my project, Am I missing something or any steps you want me to add ?
I have got clover.db files under each package/target/clover/clover.db file.
Creating war files with this intrumented code will give me clover war and non clover war files?
I have got soo many clover.db files and intrumented code , it will be very difficult to add these many files to classpath
1) My mistake, sorry. Please use the <singleCloverDatabase> only. Do not use <cloverDatabase>, as described in maven docs:
You will find a database in /target directory of the last compiled module.
2) You wrote that:
I have got soo many clover.db files and intrumented code , it will be very difficult to add these many files to classpath.
Please note that there is no need to add clover.db to a classpath. Instead of this, clover.db must be found by instrumented code (a path to clover.db is encoded in instrumented classes). It can be achieved by:
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs