Preconditions

Getting the Source Code

The Clover-for-Grails plug-in source is stored in Mercurial repository on Bitbucket.org. To get a local copy of the source code, a Mercurial client is required.

The following command will checkout the source code of the atlassian/grails-clover-plugin:

hg clone ssh://hg@bitbucket.org/atlassian/grails-clover-plugin

 

Installing the Plugin

The plugin can then be built, tested and installed via:

grails package-plugin --plain-output --verbose
grails test maven-install --plain-output --verbose  # it puts zip into local maven cache ~/.m2

Running Integration Tests

Test it against the enclosed Grails test applications located in testcases directory: daily-groove, petclinic, petclinic203, petclinic210, weceem.

  1. Update plugin clover number in <grails>/testcases/<project>/grails-app/conf/BuildConfig.groovy like

    plugins {
        build ":clover:X.X.X"
        ...
    }
  2. Change directory to <grails>/testcases/<project_name> and run 
    1. grails test-app -clover.on -clover.view
      (warning) you have to set GRAILS_HOME and PATH variables according to test project settings.

 

Submitting a Patch

To submit a patch:

  1. Make and test the change in your local work area
  2. Create a JIRA issue in project "Clover" (CLOV), set "Grails Plugin" component.
  3. Ensure any new features/configuration options have been documented in the issue description.
  4. Commit changes and:

or

Binaries

Stable releases can be downloaded from Grails Plugins site.