-
Type:
Suggestion
-
Resolution: Fixed
-
Component/s: Documentation
-
None
The way tests are detected in Clover2 has been vastly extended.
The <testsources/> fileset now supports the following nested elements to make test case detection more finer grained.
<testclass name="regex" super="regex" annotation="regex">
And testclass has a testmethod element:
<testmethod name="regex" annotation="regex"/>
Here is a contrived example with every attributed and nested element set.
<testSources dir="src"> <include name="**/*Test.java"/> <testclass name=".*Test" super="TestCase" annotation="Test"> <testmethod name=".*Bag.*" annotation="Test"/> </testclass> </testSources>