Surefire doesn't work if testng is in the classpath and a suitexml isn't being used -----------------------------------------------------------------------------------
Key: MSUREFIRE-117 URL: http://jira.codehaus.org/browse/MSUREFIRE-117 Project: Maven 2.x Surefire Plugin Type: Bug Versions: 2.2 Reporter: Jason Chaffee Attachments: patch.txt Bascially, not tests will be run. I was able to fix this in the latest surefire code, by changing this code in TestNGDirectoryTestSuite.java: try { Class junitClass = Class.forName( "junit.framework.Test" ); xmlTest.setJUnit( testSet.getTestClass().isAssignableFrom( junitClass ) ); } catch ( ClassNotFoundException e ) { } to this code: if ( !TestNGClassFinder.isTestNGClass( testSet.getTestClass(), annotationFinder ) ) { xmlTest.setJUnit( true ); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira