问题描述
目前,JUnit 5刚刚推出了稳定版本。
IntelliJ根据网站支持JUnit 5。
我的问题是eclipse是否也支持JUnit 5,如果没有支持它的话。
支持我的意思是如果我可以运行JUnit 5测试而不需要 @RunWith(PlatformRunner.class)
注释。
Currently, JUnit 5 is just out with a "stable" version.IntelliJ supports JUnit 5 according to the Website.My question is if eclipse is supporting JUnit 5 as well, and if not when it is going to be supported.With supported I mean if I can run JUnit 5 tests without the need for a @RunWith(PlatformRunner.class)
annotation.
编辑2017年10月:Eclipse现在自Eclipse Oxygen1.a(4.7.1a)
EDIT October 2017: Eclipse now officially supports JUnit 5 as of Eclipse Oxygen1.a (4.7.1a)
推荐答案
您可以运行在Eclipse Eclipse中安装 JUnit 5支持(BETA)for Oxygen 4.7 插件后,在 Eclipse 4.7 Oxygen 中进行JUnit 5 测试。完成Eclipse重启后,打开项目属性
You can run JUnit 5 tests in Eclipse 4.7 Oxygen after installing the JUnit 5 Support (BETA) for Oxygen 4.7 plugin that you can find in the Eclipse Marketplace. After a complete Eclipse restart, open your project properties at
这篇关于Eclipse JUnit 5支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!