|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/master-junit-5-for-java-developers/
课程评论:没有评论
**课程名称:** Master JUnit 5 for Java developers **课程概述:** 本课程专为希望学习JUnit 5来测试其Java代码的Java开发人员设计。JUnit是Java开发中最广泛使用的单元测试框架之一。作为JUnit 4的升级版本,JUnit 5引入了许多新特性。掌握自动测试代码以及将代码无缝集成到CI/CD管道中的能力,是所有开发人员的必备技能。 **您将学到的内容:** * **JUnit 5 架构:** 了解JUnit 5 的基本架构及其在JUnit测试平台上的构建。 * **生命周期注解:** 掌握 `@Test`、`@BeforeEach`、`@AfterEach`、`@AfterAll` 和 `@BeforeAll` 等注解的使用。 * **断言测试:** 学习如何进行相等性、null值、异常等断言测试。 * **各种测试场景:** 使用 `@RepeatedTest`、`@ParameterizedTest` 和 `@ConditionalTest` 编写测试用例。 * **测试分组:** 利用 `@Nested` 和 `@Suite` 注解对测试进行分组。 * **Maven 报告测试结果:** 通过简单的Maven配置,能够将测试结果发布到网页并与团队共享。 **开发环境:** 课程中的所有编码将在Eclipse中完成。如果您熟悉IntelliJ,也能轻松适应。 **教学方式:** 本课程将以实践为主,辅以必要的概念讲解。
This course is for Java developers who are trying to learn JUnit5 to test their code.JUnit is probably the most widely used unit testing framework for Java developers. It is the next iteration of JUnit after Junit4 and has a number of new features added.Knowing how to test your code automatically and enabling your code to be seamlessly tested as part of a CICD pipeline is a "must have" for any developer.With this course you learn:JUnit 5 architecture - You learn the basic architecture of JUnit5 and how it builds on top of the JUnit testing platform.Lifecycle annotations - @Test, @BeforeEach, @AfterEach, @AfterAll @BeforeAllTesting using assertions - You learn to test for equality, null, exceptions etc.Various testing scenarios - Write test cases using @RepeatedTest, @ParameterizedTest, @ConditionalTestGrouping tests - group various tests using @Nested and @Suite annotations.Reporting test results using maven. With just a few additions to your maven configuration, you will be able to publish these results to a web-page and also share it with your team.All of the coding will be done on Eclipse. However, if you are familiar with IntelliJ, that should be fine too.The course will be completely hands on, except when it is required to explain concepts.