Hi All,
I've been working on updating the build system for a project (http://emo.sf.net/) to maven2. Because of the extensive database setup, it all unit tests execute through a single test suite which has the format liket his: com.sri.emo.test.EmoTestSuite public static junit.framework.Test suite() throws Exception { EmoTestSuite ts = new EmoTestSuite(); ts.addTest(com.sri.emo.dbobj.TestSchema.suite()); ts.addTestSuite(com.sri.emo.TestEmoSchema.class); ts.addTestSuite(com.sri.emo.test.TestDatabaseTestFixture.class); //Other test suites return ts; } It has been working successfully under Maven1. The relevant section of my POM is: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>pertest</forkMode> <excludes> <exclude>none</exclude> </excludes> <includes> <include>**/EmoTestSuite*</include> </includes> <argLine>-ea</argLine> <systemProperties> <property> <name>junit.argv.webAppDir</name> <value>${basedir}/webapps/emo </value> </property> <property> <name>junit.argv.configDir</name> <value>${basedir}/testing/config</value> </property> <property> <name>junit.argv.testContext</name> <value>unittest</value> </property> <property> <name>unit.argv.logDir</name> <value>${basedir}/webapps/emo/WEB-INF/log</value> </property> </systemProperties> </configuration> </plugin> Unfortunately, I get: ------------------------------------------------------- T E S T S ------------------------------------------------------- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 I have: 1 - Verified that the target class is indeed getting compiled 2 - Tried debug mode to see if I could discern anything helpful. 3 - Checked Spelling :-) And of course.. 4 - Googled :-) Any ideas? -Mike
