Yes, use the excludes config param. See http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html. Note, the default excludes include Abstract*Test[Case] so you could also just rename your base classes to begin with Abstract.
Ian -----Original Message----- From: Martin Aspeli [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 12:21 PM To: [email protected] Subject: Stopping Surefire from running base classes as tests Hi guys, In my src/test/java/** I have a number of base classes, which extend TestCase but add common logic such as properly initialising the database etc. The problem is that Surefire seems to try to run these as tests, and then they fail because JUnit doesn't find any test*() methods in them. Is there a way to either filter out a package (test.db.common.*) or a glob pattern (any class not starting with Test* is not a test) or similar? Martin -- View this message in context: http://www.nabble.com/Stopping+Surefire+from+running+base+classes+as+tes ts-t1717734.html#a4665068 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
