maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1673) Surefire does not detect junit 5.5.0 tests when running a maven build
Date Wed, 24 Jul 2019 21:54:00 GMT

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

Tibor Digana commented on SUREFIRE-1673:
----------------------------------------

[~ramon.yanez.den.haan@nl.abnamro.com]
Can you write a simple project where we would be able to reproduce this issue?
Thx

> Surefire does not detect junit 5.5.0 tests when running a maven build
> ---------------------------------------------------------------------
>
>                 Key: SUREFIRE-1673
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1673
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support
>    Affects Versions: 3.0.0-M1
>         Environment: Java 8 maven 3.6.0 and maven 3.6.1
>            Reporter: Ramon Yanez den Haan
>            Priority: Major
>
> I was using junit 5.4.2 which is correctly started by surefire 3.0.0-M1.  June 30 2019
junit 5.5.0 came out. And the only thing I did is to change the junit version in the pom from
5.4.2 to 5.5.0 and then due to some change in junit, surefire 3.0.0-M1 does not find any unit tests
anymore:
>  
> With junit 5.4.2:
>  
> — maven-surefire-plugin:3.0.0-M1:test (default-test) @ CodeQualityDataRetriever —
>  [INFO] 
>  [INFO] -------------------------------------------------------
>  [INFO] T E S T S
>  [INFO] -------------------------------------------------------
>  * 
>  ** 
>  *** 
>  **** Test output removed to keep the issue short ****
> [INFO] Results:
>  [INFO] 
>  [INFO] Tests run: 62, Failures: 0, Errors: 0, Skipped: 0
>  
> With junit 5.5.0
> — maven-surefire-plugin:3.0.0-M1:test (default-test) @ CodeQualityDataRetriever —
>  [INFO] 
>  [INFO] -------------------------------------------------------
>  [INFO] T E S T S
>  [INFO] -------------------------------------------------------
>  [INFO] 
>  [INFO] Results:
>  [INFO] 
>  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>  
> When I run the tests from Intellij (by clicking on it and choosing run) intellij test
runner is used which correctly runs all unit tests, with both junit 5.4.2 or with 5.5.0
> But with the maven build with surefire it only works for junit 5.4.2
>  
> I see in the changelog of junit there are a lot of changes, could it be that surefire
needs to adapt the calling pattern so that it can also run junit 5.5.0 tests?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message