Package org.openclover.ci
package org.openclover.ci
Provides classes to programtically integrate Clover into an Ant or Maven2 build, typically from
within a Continuous Integration server.
Clover can be integrated into both Ant and Maven2 purely by decorating the respective command lines.
This api adds a nice wrapper around creating the appropriate list of arguments to add to the command line depending
on what options an end user has configured.
The
CIOptions.Builder should be used to create and configure a
CIOptions instance that then gets passed to one of the
Integrator.Factory's "new*" methods.
Examples
To integrate Clover into an Ant build, with the default set of options you would use:
CIOptions options = new CIOptions.Builder().build();
Integrator antIntegrator = Integrator.Factory.newAntIntegrator(options);
List<String> args = new ArrayList<String>(Arrays.asList("clean","test"));
antIntegrator.decorateArguments(args);
// args now contain extra args that will enable Clover to instrument all java source files and generate a coverage report.
Related Documentation
For more information relating to Clover integration, please view the If you have any problems using this api, or feature requests please don't hesitate to create an issue.- Since:
- 2.6.0
-
ClassDescriptionThis class is used to configure one of the
Integratorclasses.Search for properties in a form:An Integrator is designed to provied a simple means to enable Clover for a build from a CI environment.A utility class that contains methods to assist in integrating clover into a CI server for Maven2 builds.