clover for integration test coverage

gopal krishnan October 11, 2020

hi,

POM: Updated following clover version and configured plugin configuration

<clover.plugin.version>4.2.0</clover.plugin.version>

following command executed for unit test execution and able to get unit test coverage and published in Sonar.

mvn clean clover:instrument-test verify install clover:aggregate clover:clover

for integration coverage:

I have configured local tomcat with the following:

catalina.bat

-Dclover.initstring.basedir=c:\APPS-FOLDER\target\clover -Dclover.distributed.coverage=on                -Dclover.distributed.coverage=host=localhost;port=8080;numClients=2                                  -Dclover.logging.level=debug -Dclover.initstring=C:\APPS-FOLDER\target\clover\cloverMerge.db -Dclover.server=true

 

Deployed the instrumented war file and While restarting the tomcat service and hitting URL  as a sample integration test of the application,I am not able to see clover.db or clovermerge.db file updated with the integration test metrics.

Please let me know if I am missing any configuration or steps to get integration test coverage,

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events