问题描述
有没有办法从 IntelliJ 的 JUnit5 Runner 的构建中指定只应测试具有特定 @Tag 的测试方法(或相反,应执行除具有特定 @Tag 的测试之外的所有测试)?
Is there a way to specify from the build in JUnit5 Runner of IntelliJ that only test methods with specific @Tag should be tested (or the opposite, that all tests except those with a specific @Tag, should be executed)?
我知道如何使用 maven 来实现,但是仅使用 IntelliJ UI 是否可行?
I know how to do it with maven, but is it possible with just the IntelliJ UI?
最好的问候,迪特
推荐答案
With https://youtrack.jetbrains.com/issue/IDEA-163481 已修复,现在可以从 IJ 2018.1 开始 - 有关详细信息,请参阅 @Nicolau 的答案.
With https://youtrack.jetbrains.com/issue/IDEA-163481 fixed, it is now possible since IJ 2018.1 -- for details see @Nicolau 's answer.
这篇关于如何在 IntelliJ IDEA 中为 JUnit 指定应使用哪个 @Tag的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)