You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2019/07/12 16:20:00 UTC
[jira] [Commented] (SUREFIRE-1673) Surefire does not detect junit
5.5.0 tests when running a maven build
[ https://issues.apache.org/jira/browse/SUREFIRE-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883953#comment-16883953 ]
Tibor Digana commented on SUREFIRE-1673:
----------------------------------------
[~ramon.yanez.den.haan@nl.abnamro.com]
Try with the latest version 3.0.0-M1 and get back to Jira with the result.
Can you tell me which engine you use?
There are two {{junit-vintage-engine}} and {{junit-jupiter-engine}}.
Our integration tests pass with this version.
Can you attach your project to Jira and compress it in zip archive? Alternatively, you can write the test in a GitHub.
> 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)