weixin_39991222
weixin_39991222
2021-01-11 04:18

Ask build tools and IDEs to upgrade to junit-platform-launcher 1.6.x

Overview

In #1909 we've improved error reporting for engine discovery/execution failures. The relevant changes are in DefaultLauncher which is contained in the junit-platform-launcher artifact. Since most build tools and IDEs bundle that artifact we need to reach out to them and ask them to update to Jupiter/Vintage 5.6 (Platform 1.6).

Projects

List of projects and contacts to ping.

  • [x] Ant, JUnitLauncher task doesn't bundle JUnit artifacts
  • [x] Eclipse,
  • [x] Gradle,
  • [x] IntelliJ IDEA,
  • [x] ~Maven Surefire/Failsafe, ~ works with Surefire 3.x
  • [x] Netbeans
  • [x] VS Code, work-in-progress ... vscode-java-test #975

Deliverables

  • [x] All of the above build tools and IDEs have been upgraded

该提问来源于开源项目:junit-team/junit5

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

16条回答

  • weixin_39760389 weixin_39760389 4月前

    Netbeans includes JUnit 5.6 since Feb/Mar 2020, i.e. Netbeans 12: https://github.com/apache/netbeans/pull/1977

    点赞 评论 复制链接分享
  • weixin_39760389 weixin_39760389 4月前

    Seems like is working on VS Code lately -- is VS Code already on Platform 1.6 or higher, Johannes?

    Related issue: https://github.com/microsoft/vscode-java-test/issues/975 "Support other JUnit 5 test engines / support JUnit 5 platform"

    点赞 评论 复制链接分享
  • weixin_39760389 weixin_39760389 4月前

    Moved to 5.7 Backlog as not all IDEs/build tools are on JUnit Platform 1.6, resp. Jupiter 5.6.

    点赞 评论 复制链接分享
  • weixin_39987313 weixin_39987313 4月前

    All I did is to enable VS Code to run other engine tests from an editor.

    Under the hood VS Code is using some Eclipse-related library to start JUnit 5 tests in a very hacky way (i.e. through a faulty command line). It basically works with no engine correctly, with Jupiter it does the simple things right.

    I offered to support them when migrating to use junit-platform-launcher. As of today they have not taken me up on my offer.

    点赞 评论 复制链接分享
  • weixin_39991222 weixin_39991222 4月前

    Closing since all build tools and IDEs on the list have been contacted.

    点赞 评论 复制链接分享
  • weixin_39780962 weixin_39780962 4月前

    IntelliJ doesn't bundle junit-platform-launcher anymore (about a year or even more), it downloads the launcher on tests start according to the version of the api used in the user's project.

    点赞 评论 复制链接分享
  • weixin_39991222 weixin_39991222 4月前

    Thanks for the info! In that case, we're fine where IDEA is concerned.

    点赞 评论 复制链接分享
  • weixin_39794734 weixin_39794734 4月前

    Eclipse bug report to move to JUnit 5.6: bug 558873.

    点赞 评论 复制链接分享
  • weixin_39760389 weixin_39760389 4月前

    Surefire issue: https://issues.apache.org/jira/browse/SUREFIRE-1750

    点赞 评论 复制链接分享
  • weixin_39575565 weixin_39575565 4月前

    Gradle has been upgraded to the 1.6.0 launcher which will be released as part of Gradle 6.4

    点赞 评论 复制链接分享
  • weixin_39991222 weixin_39991222 4月前

    Thanks for letting us know! 👍

    点赞 评论 复制链接分享
  • weixin_39760389 weixin_39760389 4月前

    Created https://issues.apache.org/jira/browse/SUREFIRE-1764 to update Surefire's dependency.

    点赞 评论 复制链接分享
  • weixin_39696197 weixin_39696197 4月前

    In Surefire we are resolving the version of junit-platform-launcher in runtime. So we only need to fix it and not to upgrade it. Upgrading it would mean either breaking the users or forcing them to upgrade their POMs as well. Pls discuss it.

    点赞 评论 复制链接分享
  • weixin_39760389 weixin_39760389 4月前

    In Surefire [...] Pls discuss it.

    Let's move the Surefire-related discussion to https://issues.apache.org/jira/browse/SUREFIRE-1764 -- this issue collecting the state of "all" build tools and IDEs.

    点赞 评论 复制链接分享
  • weixin_39991222 weixin_39991222 4月前

    will create tickets for the remaining projects from the issue description.

    点赞 评论 复制链接分享
  • weixin_39760389 weixin_39760389 4月前

    Ant is "always up-to-date" as it doesn't bundle any artifact from JUnit 5 -- users are in charge to update their dependencies.

    点赞 评论 复制链接分享

相关推荐