使用junit5,git 上有说明:https://github.com/happymff/junit5

对于使用junit5 新提供了一些依赖jar

junit-jupiter-api Introduce config param for default test instance lifecycle 6 months ago
junit-jupiter-engine Use consistent Logger field name across code base 6 months ago
junit-jupiter-migrationsupport Introduce getRequired*() methods in the ExtensionContext API 7 months ago
junit-jupiter-params CSV parser returns an empty String instead of null (#1016) 6 months ago
junit-platform-commons Use consistent Logger field name across code base 6 months ago
junit-platform-console-standalone Upgrade to Gradle 4.0 8 months ago
junit-platform-console Delete @API declarations on non-public types in junit-platform-console 7 months ago
junit-platform-engine Read ConfigurationParameters from properties file in classpath 6 months ago
junit-platform-gradle-plugin Upgrade to Spock 1.1-groovy-2.4 6 months ago
junit-platform-launcher Use consistent Logger field name across code base 6 months ago
junit-platform-runner Fix JUnitPlatform JavaDoc regarding suite API annotations 6 months ago
junit-platform-suite-api Introduce and enforce syntax for tags 7 months ago
junit-platform-surefire-provider Add missing @API declaration to JUnitPlatformProvider 7 months ago
junit-vintage-engine Use consistent Logger field name across code base 6 months ago
platform-tests Read ConfigurationParameters from properties file in classpath 6 months ago

其中junit-platform-surefire-provider是surefire拉起单测junit5很重要的依赖jar,离开它单测将不能被拉起。

JUnit Platform

  • Group ID: org.junit.platform
  • Version: 1.0.0-RC2 or 1.0.0-SNAPSHOT
  • Artifact IDs:
    • junit-platform-commons
    • junit-platform-console
    • junit-platform-console-standalone
    • junit-platform-engine
    • junit-platform-gradle-plugin
    • junit-platform-launcher
    • junit-platform-runner
    • junit-platform-suite-api
    • junit-platform-surefire-provider

JUnit Jupiter

  • Group ID: org.junit.jupiter
  • Version: 5.0.0-RC2 or 5.0.0-SNAPSHOT
  • Artifact IDs:
    • junit-jupiter-api
    • junit-jupiter-engine
    • junit-jupiter-migrationsupport
    • junit-jupiter-params
<!-- Drop JUnit 4, enable JUnit 5 by default --><plugin><artifactId>maven-surefire-plugin</artifactId><version>${maven-surefire-plugin.version}</version><configuration><includes><include>**/Test*.java</include><include>**/*Test.java</include><include>**/*Tests.java</include><include>**/*TestCase.java</include></includes></configuration><dependencies><dependency><groupId>org.junit.platform</groupId><artifactId>junit-platform-surefire-provider</artifactId><version>1.1.0-RC1</version></dependency></dependencies></plugin>

junit5 与 surefire 对接使用相关推荐

  1. springboot+junit5+surefire测试报告

    目录 1. 框架: 2. 项目代码 2.1 pom文件 2.2 spring配置文件 2.3 Controller层 2.4 实体类 2.5 Service服务类 2.6 服务实现类 2.7 mapp ...

  2. 关于JUnit5 你必须知道的(一) JUnit5架构和环境搭建

    由于工作中都是使用maven来构建项目,所以下面有关环境搭建都是使用的maven(IDE使用的idea) 凡是开发对于JUnit这个框架一定都不陌生,JUnit 作为一个单元测试框架已经诞生了数十年. ...

  3. junit5和junit4_JUnit 5 –设置

    junit5和junit4 2015年11月, JUnit Lambda团队展示了他们的原型 . 此后,该项目更名为JUnit 5,并于2016年2月发布了Alpha版本.我们将在一系列简短文章中进行 ...

  4. JUnit5 Maven 依赖项

    了解使用 Maven 配置其 JUnit5 的不同模块,以及如何使用它们创建和执行测试. 请注意,JUnit5 在运行时需要 Java8. 1. JUnit5 Maven 依赖项 要通过 maven ...

  5. 超级详细!!!SpringBoot2核心技术与响应式编程尚硅谷完整知识点笔记 下篇 自动配置、容器、Web、数据响应、拦截器、SQL、NOSQL、原理、Junit5、Actuator、外部化配置等

    所有配套资料已上传到QQ群:167356412  需要的话群文件自取 06.数据访问 1.SQL 1.数据源的自动配置-HikariDataSource 1.导入JDBC场景 <dependen ...

  6. Junit5系列-什么是Junit5?

    目录 系列导航 Junit5 简介 JDK 支持 Maven 导入 所有组件介绍 JUnit Platform JUnit Jupiter JUnit Vintage Junit5 BOM 系列导航 ...

  7. 单元测试实践思考(junit5+jmockit+testcontainer)

    文章目录 背景 方案设计 单元测试指导思想 单层隔离 内部穿透 技术实现 依赖管理 基础架构 封装Junit5&Jmockit 单元测试配置 TestContainer封装 官方方案 实际方案 ...

  8. Junit5执行mvn test失败No tests were executed

    maven版本:3.6.3 surefire-plugin版本:2.12 Junit5 在终端执行mvn -Dtest=TestClass test,显示No tests were executed! ...

  9. JUnit5学习之二:Assumptions类

    欢迎访问我的GitHub 这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos 关于<JUnit5学习>系列 <JU ...

最新文章

  1. Java实现算法导论中线性规划单纯形算法
  2. #开发catia_CATIA工程制图二次开发之15:从平面创建剖面视图
  3. 【干货】五天,谷歌如何制作一款App?
  4. 雷凌linux车机ssh,OpenWRT自动挂载支持
  5. 基于CDS view生成的OData服务的metadata是如何生成的
  6. MariaDB安装1,2
  7. openVINO2021.4安装记录
  8. SparkRDD内核
  9. Prism 文档 第三章 管理组件之间的依赖关系
  10. linux系统下卸载rpm方式安装的mysql5.7.*
  11. Linux服务-搭建NFS
  12. 查歌词php,php krc歌词解析
  13. 第二章第三章 查找和排序(上)
  14. 影响力(罗伯特·西奥迪尼)读书笔记思维导图
  15. minigui 3.2.0:基于miniStudio应用TrueType字体的过程(1)
  16. CSS中的BFC规范(块级格式化上下文)
  17. 销量反弹,高管离职,苹果真的要改变高定价策略了?
  18. Halcon 回形针方向计算
  19. [blender]常用按键操作以及新手失误教程
  20. 扫地机器人朋友圈文案_装修建材行业如何写一条牛逼的朋友圈文案?

热门文章

  1. mariadb设置root初始密码
  2. 数据松弛Data Relaxation
  3. R语言版本查询以及line 1 of `undefined.cases': bad value of `47.25' for attribute `A2'的解决
  4. 使用pos标记寻找三词短语
  5. 5-5 用TSNE进行数据降维并展示聚类结果
  6. python亲和性分析法推荐电影论文_关于《Python数据挖掘入门与实战》读书笔记二(亲和性分析)...
  7. produces在@requestMapping中的使用方式和作用
  8. php实现 简单密码(代码颜色变化)
  9. Ionic系列——环境配置和项目搭建
  10. Knockout中ViewModel与Model的互转