maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramon Yanez den Haan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SUREFIRE-1673) Surefire does not detect junit 5.5.0 tests when running a maven build
Date Thu, 04 Jul 2019 12:05:00 GMT

     [ https://issues.apache.org/jira/browse/SUREFIRE-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ramon Yanez den Haan updated SUREFIRE-1673:
-------------------------------------------
    Description: 
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?

  was:
I was am 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 the test
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?


> 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.3#76005)

Mime
View raw message