Bug#157696: ant: <junit><batchtest> attempts to run tests in abstract classes
Emmanuel Bourg
ebourg at apache.org
Wed Oct 1 13:57:59 UTC 2008
This issue was also filed in the Ant bug tracker:
https://issues.apache.org/bugzilla/show_bug.cgi?id=20547
I don't think this issue should be fixed in Debian if it isn't changed
in Ant first, otherwise it would be possible to create non repeatable
builds (an ant build that would work on Debian but fail on Windows or
OSX for example).
It's quite easy to work around this issue, the abstract tests can be
named *AbstractTest and then simply excluded from the batchtest, for
example:
<junit>
<batchtest todir="${build}/classes/test">
<fileset dir="${build}/classes/test">
<include name="**/**Test.class" />
<exclude name="**/*AbtractTest.class" />
</fileset>
</batchtest>
</junit>
For these reasons I suggest to close this bug.
More information about the pkg-java-maintainers
mailing list