首页 > 其他 > 详细

junit5报错:WARNING: TestEngine with ID ‘junit-jupite

时间:2020-09-05 08:26:47      阅读:1708      评论:0      收藏:0      [点我收藏+]
解决方法:
<!--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>

junit5报错:WARNING: TestEngine with ID ‘junit-jupite

原文:https://blog.51cto.com/1929297/2528875

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!