DescriptionThe <clover-historypoint> task records a coverage history point for use in historical coverage reports. The basic nesting of elements within the <clover-historypoint> task is as follows: <clover-historypoint> Parameters
Nested elements of <clover-historypoint><fileset><clover-historypoint> supports nested filesets which control which source files are to be included in a historypoint. Only classes which are from the source files in the fileset are included in the history point. This allows history points to focus on certain packages or particular classes. By using Ant's fileset selectors, more complicated selections are possible, such as the files which have recently changed, or files written by a particular author. <testsources><testsources> is an Ant fileset that can be used to distinguish test source code from application source code. All files included in the fileset will be displayed in the separate 'Test' node of the coverage tree. If omitted, Clover's default test detection algorithm will be used to distinguish test sources.
<testresults><testresults> is an optional Ant fileset that defines the location of all test result XML files for your project. Currently, these will be used by <clover-historypoint> to determine coverage data if the includeFailedTestCoverage flag is set to false. <testresults> is generally not required by most users, as the built-in test results will provide all required information in the majority of cases. For more details please see 'Advanced Usage'.
Examples<clover-historypoint historyDir="clover-historical"/>
Records a history point into the directory PROJECT_DIR/clover-historical. <clover-historypoint historyDir="clover-historical" date="010724120856" dateFormat="yyMMddHHmmss"/> Records a history point, with the effective date of 24/07/01 12:08:56. <clover-historypoint historydir="history" filter="toString" includeFailedTestCoverage="false" property="clover.historypoint.path"> </clover-historypoint> Records a history point that excludes all test coverage that is attributed to a failed test; clover.historypoint.path will contain the absolute file path of the history point that was created. <clover-historypoint historyDir="clover-historical"> <testsources dir="src" include name="**/*Test.java"/> </clover-historypoint> Records a history point that recognises classes in the "src" directory as tests. |
