[ 
https://issues.apache.org/jira/browse/SUREFIRE-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]
Michael Osipov closed SUREFIRE-1673.
------------------------------------
    Fix Version/s:     (was: waiting-for-feedback)
       Resolution: Incomplete

No response.

> 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
(v8.20.10#820010)

Reply via email to