[
http://jira.codehaus.org/browse/SUREFIRE-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116723
]
Keith Naas commented on SUREFIRE-408:
-------------------------------------
BTW, this is the code in
http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGDirectoryTestSuite.java?revision=598205&view=markup
Note how if there are any junitTestClasses, it sets the junit flag on the
TestNG junitOptions. This isn't always what we want.
> add capability to turn on only a specific provider
> --------------------------------------------------
>
> Key: SUREFIRE-408
> URL: http://jira.codehaus.org/browse/SUREFIRE-408
> Project: Maven Surefire
> Issue Type: Improvement
> Affects Versions: 2.4
> Reporter: Keith Naas
> Priority: Minor
>
> It would be nice if you could force the maven surefire plugin to only use a
> specific provider.
> Currently, it checks if a test extends junit.framework.Test. If it is, it
> assumes its a junit test case. This is not always the case. It could still
> be a testng test.
> if (junit.framework.Test.class.isAssignableFrom( c )) {
> junitTestClasses.add( c );
> } else {
> testNgTestClasses.add( c );
> }
--
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