Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0 (2.2 plugin)
-
None
-
None
-
None
Description
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 ); }Attachments
Attachments
Issue Links
- duplicates
-
SUREFIRE-125 Surefire finds test classes but ignores test methods and configuration methods with TestNG and includes tag
- Closed