junit5报错:WARNING: TestEngine with ID ‘junit-jupite
时间:2020-09-05 08:26:47
收藏:0
阅读:1708
解决方法:
<!--JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage-->
分析:网上大部分引入了Junit Viintage,若是只要使用junit5就不需要, 这个功能只是向下兼容性3.0或4.0版本:
故:Junit5=Junit Plaform+Junit Jupiter+junit Jupiter api
<!--JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage-->
分析:网上大部分引入了Junit Viintage,若是只要使用junit5就不需要, 这个功能只是向下兼容性3.0或4.0版本:
故:Junit5=Junit Plaform+Junit Jupiter+junit Jupiter api
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.3.2</version>
<scope>test</scope>
</dependency>
原文:https://blog.51cto.com/1929297/2528875
评论(0)