I'm new to clover and have war from dev team and need to perform build with clover and run my integration tests with maven.
Hi vinod kumar,
You can't really run Clover with already builded war file. It's because Clover is basing on source code instrumentation. But you can integrate Clover with Maven to build proper artifact and generate code coverage reports from it.
Here are some links from documentation how to achieve it:
Remember about setting up flush policy, which may cause some problems:
If you have problems with configuring Clover feel free to ask,
Thanks Grze,I'm able to move further on Clover.Hava a quick Question
clover2:setupsaves time stamp for Clover test optimization feature and
clover2:instrumentforks the process and add suffixes for generated artifacts, in general if you won't be use any specific automatic deployment we're suggesting using
clover.jar is required by instrumented code otherwise you'll face
ClassNotFoundErrors so your need ensure
clover.jar is in the classpath by i.e:
$CATALINA_BASE/libdirectory, for reference
productservice-clover.warwas generated because you've used
clover2:instrumentand in that case
productservice.warwon't contain instrumented sources, so in general it depends on which goal are you using:
clover2:setupyou should use
clover2:instrument you should use
Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events