Author: vmassol Date: Tue Oct 3 14:30:14 2006 New Revision: 452632 URL: http://svn.apache.org/viewvc?view=rev&rev=452632 Log: MCLOVER-48: Add support for block contexts
* Added documentation on using block contexts Modified: maven/plugins/trunk/maven-clover-plugin/src/site/apt/usage.apt Modified: maven/plugins/trunk/maven-clover-plugin/src/site/apt/usage.apt URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clover-plugin/src/site/apt/usage.apt?view=diff&rev=452632&r1=452631&r2=452632 ============================================================================== --- maven/plugins/trunk/maven-clover-plugin/src/site/apt/usage.apt (original) +++ maven/plugins/trunk/maven-clover-plugin/src/site/apt/usage.apt Tue Oct 3 14:30:14 2006 @@ -30,6 +30,8 @@ * {{{usage.html#Getting information on an existing Clover database}Getting information on an existing Clover database}} + * {{{usage.html#Using block contexts}Using block contexts}} + [] * {Generating a Clover report when generating the site} @@ -429,3 +431,22 @@ Conditionals: 1/2 (50%) TOTAL: 62,5% +--------- + +* {Using block contexts} + + Clover allows specifying {{{http://cenqua.com/clover/doc/adv/contexts.html}block contexts}} + (i.e. elements to be excluded from the Test Percentage Coverage). To configure a block context use + the <<<contextFilters>>> element. For example to exclude <<<try>>> and <<<static>>> block contexts, you would + write: + ++-------- +[...] + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clover-plugin</artifactId> + <configuration> + <contextFilters>try,static</contextFilters> + </configuration> +[...] ++--------- + \ No newline at end of file