ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif Bladt (Inxmail GmbH)" <leif.bl...@inxmail.de>
Subject JUnit and batch test
Date Tue, 20 Apr 2010 14:26:33 GMT
Hi,

I'm running my JUnit tests with a batchtest in the build file, where I select the test files
with a regex (on the filename). I wonder if there is no other possibility, to run all files
which contain test methods.

I came across this question, since I figured out, that some of my tests where not running
automatically... I have two cases:

1.
Inherited test cases, where no test methods were defined in the abstract class.
class AbstractPersistenceTest {}
class APersistenceTest extends AbstractPersistenceTest {}
class BPersistenceTest extends AbstractPersistenceTest {}

2.
A test class for an abstract class.
class AbstractFooTest {}


Regards,
Leif

-- 
Software Development



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message