From 52892d03bfbff8c2b3cc2a2a4528f01325193097 Mon Sep 17 00:00:00 2001 From: vmassol Date: Fri, 16 Jul 2004 18:36:26 +0000 Subject: [PATCH] - Made the following goals public by documenting them: clover:report, clover:on, clover:off, clover:test, clover:test-single - Added new clover:test-single goal to execute a single test case and to view the test coverage result directly using the Clover Swing viewer. This is useful if you wish to quickly see the action that a single unit test has on the code it tests. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115838 13f79535-47bb-0310-9956-ffa450edef68 --- clover/plugin.jelly | 35 ++++++++++++++++++++++--- clover/xdocs/changes.xml | 12 +++++++++ clover/xdocs/goals.xml | 56 ++++++++++++++++++++++++++++++++++++---- 3 files changed, 94 insertions(+), 9 deletions(-) diff --git a/clover/plugin.jelly b/clover/plugin.jelly index 5cf0a346..01b341ee 100644 --- a/clover/plugin.jelly +++ b/clover/plugin.jelly @@ -92,7 +92,8 @@ need to call clover:off to reset them as they were initially. ======================================================================== --> - + - + ${context.removeVariable('build.compiler')} @@ -186,7 +187,8 @@ data. ======================================================================== --> - + @@ -202,13 +204,38 @@ + + + + + + + + + + No tests to run Clover on + + + + + - + diff --git a/clover/xdocs/changes.xml b/clover/xdocs/changes.xml index 4f3eead6..63198636 100644 --- a/clover/xdocs/changes.xml +++ b/clover/xdocs/changes.xml @@ -26,6 +26,18 @@ + + Made the following goals public by documenting them: + clover:report, clover:on, + clover:off, clover:test, + clover:test-single. + + + Added new clover:test-single goal to execute a single test + case and to view the test coverage result directly using the Clover + Swing viewer. This is useful if you wish to quickly see the action that + a single unit test has on the code it tests. + Now using maven:get and maven:set. diff --git a/clover/xdocs/goals.xml b/clover/xdocs/goals.xml index 44bf89be..71ee184c 100644 --- a/clover/xdocs/goals.xml +++ b/clover/xdocs/goals.xml @@ -41,20 +41,66 @@ clover - This is the default goal. Does the same as the + This is the default goal. It compiles the project code with Clover, + executes the unit tests and generate Clover reports by calling the clover:report goal. + + clover:test + + Compiles the project code with Clover and executes the unit tests. + + + + clover:test-single + + Execute a single unit test and view the test coverage result directly + using the Clover Swing viewer. This is useful if you wish to quickly + see the action that a single unit test has on the code it tests. + + 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. + properties. The generated reports show + exactly what lines of your code were exercised by your tests. + + + + clover:xml-report + + Generate an XML test coverage report with Clover. + + + + clover:html-report + + Generate an HTML test coverage report with Clover. + + + + clover:swing-report + + Generate a Swing test coverage report with Clover. + + + + clover:on + + Activates Clover, which means that any other plugin calling the Ant + javac task will find its code compiled with Clover. This + is useful for example to Clover Cactus tests: + maven clover:on cactus. + + + + clover:off + + Deactivates Clover, resetting back the normal javac compiler.