diff --git a/clover/project.xml b/clover/project.xml index b8a66baa..53d018cf 100644 --- a/clover/project.xml +++ b/clover/project.xml @@ -5,7 +5,7 @@ 3 maven-clover-plugin Maven Clover Plug-in - 1.3-SNAPSHOT + 1.3 Produce Clover reports http://maven.apache.org/reference/plugins/clover/ @@ -24,7 +24,7 @@ 1.3 1.3 - HEAD + MAVEN_CLOVER_1_3 @@ -86,11 +86,21 @@ - clover + clover + clover 1.2.3 root + + maven-changes-plugin + maven-changelog-plugin + maven-file-activity-plugin + maven-developer-activity-plugin + maven-file-activity-plugin + maven-license-plugin + maven-linkcheck-plugin + diff --git a/clover/xdocs/build-file.xml b/clover/xdocs/build-file.xml deleted file mode 100644 index 894d38e3..00000000 --- a/clover/xdocs/build-file.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - Vincent Massol - Maven Clover Plug-in Build File Documentation - - - -
-

- Maven utilizes Ant - to provide users with an easy-to-use and familiar interface to - manage projects that have been described with a valid Maven project descriptor. - The build files that Maven - installs are stored in ${maven.home} directory. -

-

- This document describes the Ant build file and targets - that are available when using the Clover Plug-in with Maven. -

-

- The current recommended approach to using Maven is to add - delegators to these Maven-provided targets in your project's - main build file. This will enable you to use your existing - build file with the additional Maven functionality. In - addition, it is also recommended that you load a standard set of - property files. The property files will setup your environment, - ${lib.repo} and ${maven.home}, and - allow you to override Maven defaults properties. Please refer - to the Integration document for - more information on how to integrate these build targets into - your project. -

-

- The following table contains a brief overview of the - build file that is installed as part of the Maven Clover Plug-in in the - ${maven.home}/plugin/clover directory. In addition, - the various Ant targets in this file is discussed. -

- - - - - - -
Build FileDescription
build.xml - Contains targets to generate Clover test coverage reports. -
-

- The build file utilizes various properties for default and - user-configurable settings. All Clover Plug-in properties are described - in the Properties document. - - The rest of this document assumes your project follows the standard - Directory Layout; however, it is - possible to override many of these defaults. -

-
-
- - - - - - - - - - - - - - -
TargetDescription
maven:clover-testRuns unit tests on Clover-instrumented code and generates - coverage data.
maven:clover-report-htmlGenerates HTML Clover Test coverage reports.
maven:clover-report-swingRun Clover Test coverage reports with the Swing viewer
-

- -

- This target instruments your code, runs your unit tests on it - and generates a Clover database file. This target must be called - prior to calling one of the report targets below. -

-

- Note : There is a limitation in Clover 0.5b. The - test coverage results are written to Clover database on JVM shutdown - only. Thus be careful to execute the maven:clover-test - target separately from the maven:clover-report-* ones - or the report will show a 0% coverage result! In other words, do not - type "ant maven:clover-test maven:clover-report-*". - Instead, do it in 2 JVM invocations : - "ant maven:clover-tests" and - "ant maven:clover-report-*". -

- - -

- Prior to running this target you should have called the - maven:clover-test one which generates a test - result database file. This target generates an HTML report - from that database file. The report shows exactly what lines of - your code were exercised by your tests. -

-
- -

- Prior to running this target you should have called the - maven:clover-test one which generates a test - result database file. This target runs a Swing viewer - displaying the content of that database file. -

-
-
- -
diff --git a/clover/xdocs/changes.xml b/clover/xdocs/changes.xml index a8afcf96..1b75f0ae 100644 --- a/clover/xdocs/changes.xml +++ b/clover/xdocs/changes.xml @@ -8,7 +8,10 @@ - + + + Added unit tests for the plugin and reworked the documentation. + Upgraded to Clover 1.2.3. diff --git a/clover/xdocs/dirlayout.xml b/clover/xdocs/dirlayout.xml deleted file mode 100644 index 98f1c19e..00000000 --- a/clover/xdocs/dirlayout.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Vincent Massol - Maven Clover Plug-in Directory Layout - - - - -
-

- Having a common directory layout would allow for users familiar - with one Maven project to immediately feel at home in another - Maven project. The advantages are analogous to adopting a - site-wide look-and-feel. Common Maven procedures strengthen the - Maven brand. -

-

- The next two sections document the directory layout expected by - Maven and the directory layout created by Maven. Please try to - conform to this structure as much as possible; however, if you - must these settings can be overridden via properties as - documented in the Integration document. -

-
-
- - - - - - - - - - - - - - - - -
Directory nameContentComment
target/cloverContains instrumented code and clover database. - This directory is used by the Clover Plug-in as a placeholder for - the instrumented code and also as the location of the Clover - database. -
target/docs/cloverContains generated Clover reports. - Clover generates its HTML reports in this directory. -
-
- -
diff --git a/clover/xdocs/futures.xml b/clover/xdocs/futures.xml deleted file mode 100644 index 52701969..00000000 --- a/clover/xdocs/futures.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - Vincent Massol - Futures for the Clover Plug-in - - - -
-

- The following is a list of things that are being contemplated - for the Maven Clover Plug-in. -

-
    -
  1. Also run integration unit tests before generating the reports
  2. -
  3. Export the name of the Clover database as a property
  4. -
-
- -
diff --git a/clover/xdocs/goals.xml b/clover/xdocs/goals.xml index a2400cee..9e5ad7b3 100644 --- a/clover/xdocs/goals.xml +++ b/clover/xdocs/goals.xml @@ -2,26 +2,42 @@ - Maven clover Plug-in Goals + Maven Clover plugin goals dIon Gillard + Vincent Massol +
+

+ The typical way to use the Clover plugin is by registering a Clover + report in your project.xml: +

+ + maven-clover-plugin + [...] + +]]> +
clover - Generate HTML test coverage reports with Clover + + This is the default goal. Does the same as the + clover:report goal. + - clover:html-report - Generate HTML test coverage reports with Clover - - - clover:on - Create the needed directory structure - - - clover:swing-report - Generate Swing test coverage reports with Clover + clover:report + + Generate Clover test coverage reports with Clover. There are 3 + possible reports: HTML, XML or Swing. Whether a report is generated + is controller by the maven.clover.report.[report name] + properties. Before generating a + report, the goal recompiles the source code with Clover and reruns + the unit tests. The generated reports show exactly what lines of + your code were exercised by your tests. + diff --git a/clover/xdocs/index.xml b/clover/xdocs/index.xml index 3cc4270d..052a1cbf 100644 --- a/clover/xdocs/index.xml +++ b/clover/xdocs/index.xml @@ -3,67 +3,21 @@ Maven Clover Plug-in - Vincent Massol + Vincent Massol -
+

- This document provides an overview of the Maven Clover Plug-in. + The Clover Plug-in is the place where + Clover tools are found + in Maven.

- The documents presented here are references, if you are looking - for more verbose usage material, please refer to the Getting Started section. + Clover is a tool that generates Test Coverage reports. It is free for + non-commercial use. If your project is a commercial project you will + need to get a license for the Clover jar before using this plugin.

- -

- The Clover Plug-in is the place where Clover tools are found - in Maven. -

-

- Clover is a tool that generates Test Coverage reports. It is free for - non-commercial use. If your project is a commercial project you will - need to get a license for the Clover jar before using this Plug-in. -

-
- - - - - - - - - - - - - - - -
DocumentDescription
Build File - This document provides detailed information on the various - targets that are available as part of the Maven Clover Plug-in. - These targets can be delegated to by your project's local - build file. -
Properties - The behavior of the Maven Clover Plug-in can be altered via - properties. This document describes each property - available as the default used. -
Directory Layout - The preferred directory layout structure is documented - here. This is a useful document if you are trying to - determine what a particular component of your directory - hierarchy is used for. -
Futures - These are the current thoughts on additional items - that could or should be added to the plug-in. - They may or may not make it to an actual task list of a - developer. -
-
diff --git a/clover/xdocs/navigation.xml b/clover/xdocs/navigation.xml index 5834d1c2..8b623555 100644 --- a/clover/xdocs/navigation.xml +++ b/clover/xdocs/navigation.xml @@ -9,11 +9,11 @@ - - - - - + + + + + diff --git a/clover/xdocs/properties.xml b/clover/xdocs/properties.xml index 3edcfa03..fda0dd33 100644 --- a/clover/xdocs/properties.xml +++ b/clover/xdocs/properties.xml @@ -2,63 +2,70 @@ - Vincent Massol - Maven Clover Plug-in Properties Documentation + Vincent Massol + Maven Clover plugin properties -
-

- The following is an overview of the various properties (and - default values) used by the Maven Clover Plug-in build file. Most of these - properties are optional and have defaults; however, there are - mandatory properties that must be set as described in this document. -

-

- These properties can be overridden to change the default behavior of - the Maven Clover Plug-in. If you need to override any of these - properties, please refer to the - Integration - document for the preferred method of setting properties in your project. -

+
- + - + + + -
SectionDescription
PropertyOptional?DescriptionDefault
Miscmaven.clover.orderByYes - These properties specify various settings that control the - behaviour of the Clover Plug-in. + Specifies how the reports must be sorted: +
    +
  • Alpha -- Alpabetical
  • +
  • PcCoveredAsc -- Percent total coverage, ascending
  • +
  • PcCoveredDesc -- Percent total coverage, descending
  • +
  • ElementsCoveredAsc -- Total elements covered, ascending
  • +
  • ElementsCoveredDesc -- Total elements covered, descending
  • +
+
+ PcCoveredAsc
-
- -
- - - - + + - + + - - - + + + + + + + + + + + + + + + +
PropertyOptional?Description
maven.clover.database.dirNomaven.clover.report.htmlYes - Specifies the location of the Clover database. The default value is - ${maven.build.dir}/clover/database. + Decides whether an HTML report will be generated.
+ true +
maven.clover.orderByNo - Specifies the type of report to generate: -
    -
  • Alpha -- Alpabetical
  • -
  • PcCoveredAsc -- Percent total coverage, ascending (default)
  • -
  • PcCoveredDesc -- Percent total coverage, descending
  • -
  • ElementsCoveredAsc -- Total elements covered, ascending
  • -
  • ElementsCoveredDesc -- Total elements covered, descending
  • - -
-
maven.clover.report.xmlYes + Decides whether an XML report will be generated. + + false +
maven.clover.report.swingYes + Decides whether a Swing report will be generated. + + false +
maven.clover.database.dirYes + Specifies the location of the Clover database. + + ${maven.build.clover}/database +