https://issues.apache.org/bugzilla/show_bug.cgi?id=46879
Summary: Enhance <batchtest> to support running tests from
multiple source folders
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: enhancement
Priority: P1
Component: Optional Tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
There seems to be a discrepancy in philosophy regarding the level of support
for multiple source folders. For example, in a project that has the following
organization:
src-io/code/.../Main.java
src-io/test/.../MainTest.java
src-api/code/.../API.java
src-api/test/.../APITest.java
...etc...
The <javac> task supports this multiple-source model by allowing the use of
<src refid="src.code.dirs"/>, where "src.code.dirs" is defined as:
<path id="src.code.dirs">
<dirset dir="${basedir}" includes="src-*/code"/>
</path>
similarly, one can define a "src.test.dirs" to include all the unit test code.
It would make sense to be able to take the same approach when defining
<batchtest> tests.
For example, I would've expected to be able to:
<batchtest>
<fileset refid="src.test.dirs" includes="**/*Test.java" />
</batchtest>
In any event - there seems to be no way to include multiple source folders in a
batchtest, short of creating individual <fileset>s and including them in the
<batchtest> node.
It would be nice to have a way to define that tests can come from multiple
source folders.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.