[ https://issues.apache.org/jira/browse/SUREFIRE-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521317#comment-16521317 ]
Dan Tran commented on SUREFIRE-1527: ------------------------------------ I stepped thru the code, and it seems TestNG provider is picked first ( when no provider specified at surefire plugin) and since TestNG can run junit4, it runs junit4 test and skip junit5 I think we can enhance TestNG TestNgProviderInfo.isApplicable to return false when either testng.jar not found or testng suite(s) is not configured at surefire configuration > Surefire does not discover junit5 test case when testng is in the classpath > --------------------------------------------------------------------------- > > Key: SUREFIRE-1527 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1527 > Project: Maven Surefire > Issue Type: Improvement > Components: JUnit 5.x support, TestNG support > Affects Versions: 2.22.0 > Reporter: Dan Tran > Priority: Major > > My maven module uses junit5 but also has testng in its test classpath and my > surefire does not specify any testng.xml files > Looks like surefire only look for testng test cases -- This message was sent by Atlassian JIRA (v7.6.3#76005)