maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Tran (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SUREFIRE-1527) Surefire does not discover junit5 test case when testng is in the classpath
Date Sun, 01 Jul 2018 16:52:00 GMT

    [ https://issues.apache.org/jira/browse/SUREFIRE-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16529019#comment-16529019
] 

Dan Tran edited comment on SUREFIRE-1527 at 7/1/18 4:51 PM:
------------------------------------------------------------

Here is proposed fix at TestNgProviderInfo
{code:java}
  @Override
  public boolean isApplicable()
  {
      return testNgArtifact != null && hasSuiteXmlFiles();
  }{code}

Another workaround at surefire configuration to force surefire not able to detect the present
of testng
{code:java}
<configuration>
    <testNGArtifactName>org.testng:testng-ignore</testNGArtifactName> 
</configuration>{code}


was (Author: dantran):
Here is proposed fix at TestNgProviderInfo
{code:java}
  @Override
  public boolean isApplicable()
  {
      return testNgArtifact != null && hasSuiteXmlFiles();
  }{code}

Another workaround to force surefire not able to detect the present of testng
{code:java}
<configuration>
    <testNGArtifactName>org.testng:testng-ignore</testNGArtifactName> 
</configuration>{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)

Mime
View raw message