This page contains instructions on preparing a multi-module project for remote deployment with Clover-for-Maven 2.
To prepare a multi-module project with Clover-for-Maven 2,
- Instrument the source with Clover and generate EAR/WAR file, then include the
clover.jar
file in the lib
directory.
- Deploy to application server and ensure Clover can find the registry at runtime.
- Copy the database, the
clover.db
file to a directory in the test machine and specify the location in the Clover initstring. For details, see Documentation on setting Clover initstring.
- If the project contains sub-modules, copy each database with its directory. For example:
Sub-Module1\target\clover\clover.db
Copy the text above into a location (as specified in the clover initstring) in the test machine. Alternatively, create databases with different names.
- After the tests, copy all the databases to the build machine, run an aggregate goal (merge databases) and generate the reports from there.