一. springboot2.x.x 版本运行springbootTest的时候,用junit5报错

上网查了半天,有说,需要导入junit-jupiter依赖的;有说需要排除junit-vintage-engine依赖的,有说idea版本问题的。

自己挨个试一遍,还是报错。

二.  https://blog.csdn.net/u011165335/article/details/104125724

直到找到这篇文章,重点

maven3.6版本才正式支持junit5。如果是之前的maven版本,请添加相应的插件来支持junit5。

当然,我查看了一下我的maven版本是3.3版本,果断更新maven版本。

https://maven.apache.org/download.cgi

运行,测试,问题解决

TestEngine with ID ‘junit-jupiter‘ failed to discover相关推荐

  1. org.junit.platform.commons.JUnitException: TestEngine with ID ‘junit-vintage‘failed to discover test

    Internal Error occurred. org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-vintag ...

  2. 报错:TestEngine with ID ‘junit-jupiter‘ failed to discover tests

    遇到的问题:TestEngine with ID 'junit-jupiter' failed to discover tests 解决方法 把包 import org.junit.jupiter.a ...

  3. TestEngine with ID ‘junit-vintage‘ failed to discover tests

    在进行单元测试的时候,启动报错: TestEngine with ID 'junit-vintage' failed to discover tests 看了网上说的,由于spring-boot-st ...

  4. maven--TestEngine with ID ‘junit-vintage‘ failed to discover tests

    报错:org.junit.platform.commons.JUnitException:TestEngine with ID 'junit-vintage' failed to discover t ...

  5. Junit和Junit.Jupiter.api用法区别

    Junit和Junit.Jupiter.api用法区别写在了文章的总结处,这里先简单的介绍一下Junit用法. Junit 5 = Junit Platform + Junit Jupiter + J ...

  6. The import org.junit.jupiter cannot be resolved 报错

    对于刚刚开始使用SpringBoot的小伙伴们来说可能会遇到The import org.junit.jupiter cannot be resolved这样的错误,那么该如何解决这个错误的呢, 下面 ...

  7. 【已解决】Failed to discover available identity versions when contacting http://controller:5000/v3.

    输入openstack domain create --description "An Example Domain" example命令后出现错误: Failed to disc ...

  8. openstack报错:Failed to discover available identity versions when contacting http://controller:5000/v3

    问题描述 执行命令:openstack flavor list,几乎执行所有openstack命令都会报以下错误: 原因分析: 原因是openstack中没有用户环境脚本. 解决方案: 提示:这里填写 ...

  9. junit 5测试异常处理_使用JUnit 5测试异常

    junit 5测试异常处理 JUnit 5带来了令人敬畏的改进,并且与以前的版本有很大不同. JUnit 5在运行时需要Java 8,因此Lambda表达式可以在测试中使用,尤其是在断言中. 这些断言 ...

最新文章

  1. 为什么java退出全屏_Java全屏模式与退出全屏:
  2. html固定广告,css如何实现广告固定动态漂浮
  3. android proguard 第三方jar,Android Studio代码混淆-第三方jar混淆汇总(持续更新)
  4. 企业网络推广—企业网络推广专员一定要避免这些不靠谱的优化方式
  5. 病例对照研究和队列研究详解
  6. 深入理解计算机操作系统:链接
  7. 回溯---分割字符串使得每个部分都是回文数
  8. 层次分析法AHP - 代码注释多 - ( 数据建模 Python代码)
  9. Fedora/RedHat上使用Docker命令搭建Mysql服务器
  10. 分区未分配linux,在Linux下对未分配剩余空间分区
  11. 学了这么久Java都没搞懂位运算符
  12. 高盛 CEO:没背景的孩子,请与有野心的人为伍!
  13. 10打开没有反应_【专利】表面施胶剂的反应装置
  14. linux python测试程序,linux下测试python程序执行时间
  15. 如何将MID音乐转换成MP3
  16. 3dmax简单制作方法
  17. 华硕电脑(博主电脑型号为天选FA506IH)Fn组合键屏幕不显示对应操作的解决办法!!
  18. VBScript: Windows脚本宿主介绍
  19. 电机控制方法以及区别
  20. 模拟实现strlen

热门文章

  1. 老黄历:编码式的统治策略
  2. python集成开发环境中可使用什么快捷键运行程序_1.4 Python集成开发环境(2)
  3. android判断是否root或者是否能被root的方法
  4. windows sql server 如何卸载干净?
  5. Spring-day1
  6. 各大牛逼网站推荐系统
  7. NPL基础入门之新闻本分类数据分析Test2
  8. Python实时下载B站直播间视频(M3U8视频流)
  9. 网站统计访问次数的方法
  10. ZZ:windbg 常用命令