IntelliJ Idea中无法识别JUnit 5测试

时间:2017-12-17 23:43:11

标签: java testing intellij-idea junit5

我试图在IntelliJ CE 2017.2.3中转换为JUnit 5版本并体验以下内容:

enter image description here

使用JUnit 4运行相同的测试,错误仅在升级时显示。

pom.xml部分:

   <!-- <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
    </dependency>-->
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-api</artifactId>
        <version>RELEASE</version>
    </dependency>
</dependencies>

这些Java代码段可能是相关的:

enter image description here

enter image description here

我做错了什么?

1 个答案:

答案 0 :(得分:1)

This looks like this issue. Please upgrade to latest IDE version which has updated JUnit libraries and should be working fine.