Hi,
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,
Best Regards,
Grzegorz Lewandowski
Hi,
clover2:setup
saves time stamp for Clover test optimization feature and clover2:instrument
forks the process and add suffixes for generated artifacts, in general if you won't be use any specific automatic deployment we're suggesting using clover2:setup
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:
META-INF/lib
directory$CATALINA_BASE/lib
directory, for referenceproductservice-clover.war
was generated because you've used clover2:instrument
and in that case productservice.war
won't contain instrumented sources, so in general it depends on which goal are you using:clover2:setup
you should use productservice.war
for clover2:instrument
you should use productservice-cloverr.war
Cheers,
Grzegorz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Grze,I'm able to move further on Clover.Hava a quick Question
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.