Hello, I have a server and it is running my app. I want to get the metrics from Clover on remote(distrebuted) testing my application I am testing my application with a browser, after each test, get the files Clover(i e: clover.db5nb4l4_h99zod5p) further generated report using the mvn clover2: clover, resulting in a blank report, ie covering code 0%, what am I doing wrong?
I'm not sure whether you have a distributed test or not:
What do you exactly mean by "testing application with a browser":
Could you give more details how Clover is configured in your pom.xml?
Thanks for your answer, Accepted my application get requests and answers responses.
I just send requests from the browser. And get response from my app.
My application consists of two modules: webapp and servlet parts, the servlet part loaded into webapp as jar library. In both parts in the pom.xml is written the same clover configuration (is this correct?)
feature of my application is: webapp part is not Java classes used for this module so is therefore not created clover.db (Am I right?)
my clover configuration(for webapp part and server part):
<build> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <version>3.1.6</version> <configuration> <distributedCoverage> <numClients>1</numClients> </distributedCoverage> <licenseLocation>clover.license</licenseLocation> </configuration> <executions> <execution> <phase>process-sources</phase> <goals> <goal>setup</goal> </goals> </execution> <execution> <id>log</id> <phase>verify</phase> <goals> <goal>log</goal> <goal>check</goal> <goal>clover</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
Have you seen this manual: Using Clover for web applications? Please note that Distributed Coverage must be enabled only if both conditions are met:
According to your description, you don't have unit tests but you test the application manually. So first condition is not met.
I propose following modifications in your pom.xml:
One more thing: how do you copy clover.db to your JBoss installation? I don't see <cloverDatabase> attribute defined in pom.xml. Do you have -Dclover.initstring=/path/to/clover.db declared as JBoss' JVM argument?
I'm John Allspaw, co-founder of Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...
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