[
https://issues.apache.org/jira/browse/SUREFIRE-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798123#comment-16798123
]
Ilya Serbis commented on SUREFIRE-1527:
---------------------------------------
For those who interested in a workaround: specify test-framework provider
manually as it's described at
[https://maven.apache.org/surefire/maven-surefire-plugin/examples/providers.html]
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>${surefire.version}</version>
</dependency>{code}
> 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)