|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/junit-5-jupiter-under-jdk-16-in-details-step-by-step/
课程评论:没有评论
本 Coursera 课程“Junit 5 Jupiter Under JDK 16 In Details Step by Step”深入讲解了 JUnit 5 的方方面面。 课程内容涵盖: * **JUnit 5 Jupiter 介绍:** 探讨了质量工程流程、单元测试的重要性,并回顾了 JUnit 3 和 JUnit 4 的发展历程,重点分析了 JUnit 5 Jupiter 的诞生、架构及与前版本的对比。 * **JUnit 5 Jupiter 基础:** 教授了断言语句(包括异常断言、批量断言)、DisplayName、禁用测试、超时断言、重复测试、测试顺序、Tagging & Filtering、嵌套测试类、测试实例生命周期以及 Jupiter Extensions (包括各种 Callback 接口)。此外,还涉及了 assumptions(假设)和与其他断言框架(Hamcrest, AssertJ)的集成,以及条件化执行(各种 `@Enabled` 和 `@Disabled` 条件)。 * **JUnit 5 Jupiter 高级特性:** 讲解了依赖注入(包括内置的 ParameterResolver 和自定义 ParameterResolver)、动态测试 (TestFactory, DynamicContainer, Test Sources)、Test Templates、参数化测试(支持多种参数来源,如 ValueSource, EnumSource, MethodSource, CsvSource, CsvFileSource, ArgumentsSource,以及参数转换和自定义显示名称)和并行执行。 * **迁移旧版 JUnit 4 测试代码:** 演示了如何在 JUnit 4 中运行 Jupiter 测试,以及如何将 JUnit 4 代码迁移到 JUnit 5,包括两者之间的区别以及如何兼容 JUnit 4 的 `@Rule`。 * **集成其他测试工具:** 介绍了 JUnit 5 与 Mockito, Powermock, Selenium, Cucumber, Spring Boot 等流行测试框架和工具的集成。 本课程旨在帮助学习者全面掌握 JUnit 5 Jupiter 的使用,并能将其应用于实际的软件开发和测试工作中。
****Please enable the vedio cc(captions) function ****The course covers the basics of Junit 5, advanced usage, and integration with other testing great tools in detail.1. JUnit 5 Jupiter Introduction 1.1 Quality Engineering Process 1.1.1 Quality Planning 1.1.2 Quality Assurance 1.1.3 Post-Quality Assurance 1.2 Why Unit Testing? 1.3 JUnit Framework Retrospect 1.3.1 JUnit 3 1.3.1.1 Standard Test Case & Lifecycle 1.3.1.2 TestSuite 1.3.2 JUnit 4 1.4.2.1 Standard Test Case & Lifecycle 1.4.2.2 @RunWith & Runner Parameterized Theories MockitoJUnitRunner 1.4.2.3 @Rule 1.3.3 JUnit 5 Jupiter 1.3.3.1 JUnit 3 & 4 defect 1.3.3.2 JUnit 5 inception 1.3.3.3 JUnit 5 architecture 1.2.4 JUnit 5 Jupiter Quick Start Junit 5 Jupiter Junit 5 TestEngine Junit 5 Platform Luancher 2. JUnit 5 Juipter Basic 2.1 Jupiter Assertion Statement 2.2 Exception Assertion 2.3 Batch all Assertion 2.4 DisplayName 2.5 Disabled 2.6 Timeout Assertion 2.7 RepeatTest 2.8 Order 2.9 Tagging & Filtering 2.10 Nested Test Classes 2.11 Test Instance Lifecycle 2.12 Jupiter Extensions 2.12.1 TestInstancePostProcessor 2.12.2 BeforeAllCallback 2.12.3 BeforeEachCallback 2.12.4 BeforeTestExecutionCallback 2.12.5 TestExecutionExceptionHandler 2.12.6 AfterTestExecutionCallback 2.12.7 AfterEachCallback 2.12.8 AfterAllCallback 2.13 Assumptions 2.14 Integration Other Assertion framework 2.14.1 Hamcrest 2.14.2 AssertJ 2.15 Condition Execution 2.15.1 DisabledCondition 2.15.2 DisabledOnJreCondition 2.15.3 EnabledOnJreCondition 2.15.4 EnabledOnOsCondition 2.15.5 EnabledForJreRangeCondition 2.15.6 DisabledForJreRangeCondition 2.15.7 DisabledOnOsCondition 2.15.8 DisabledIfEnvironmentVariableCondition 2.15.9 DisabledIfSystemPropertyCondition 2.15.10 EnabledIfSystemPropertyCondition 2.15.11 EnabledIfEnvironmentVariableCondition 2.15.12 EnabledIfCondition 2.15.13 DisabledIfCondition 2.15.14 Custom Condition Execution 2.16 Test case in Interface 3. JUnit 5 Juipter Advanced 3.1 Dependency injection(build-in) 3.1.1 TestInfoParameterResolver 3.1.2 RepetitionInfoParameterResolver 3.1.3 TestReporterParameterResolver 3.1.4 Custom ParameterResolver 3.2 Dynamic Tests-TestFactory 3.3 DynamicContainer 3.4 Test Sources 3.5 Test Templates 3.6 Parameterized tests 3.7.1 ValueSource 3.7.2 EnumSource 3.7.3 MethodSource 3.7.4 CsvSource 3.7.5 CsvFileSource 3.7.6 ArgumentsSource 3.7.7 Argument conversion 3.7.7.1 Implicit conversion 3.7.7.2 Explicit conversion 3.7.8 Custom Display Names 3.7 Parallel Execution 4. Migrate legacy JUnit 4 test code 4.1 Jupiter tests in JUnit 4 4.2 Migration from JUnit 4 to JUnit 5 4.2.1 Junit4 vs Junit5 4.2.2 Run Junit 4 at Junit 5 platform 4.2.3 Junit 4 @Rule at Junit 5 platform 5. Integration 5.1 Mockito 5.2 Powermock 5.3 Selenium 5.4 Cucumber 5.5 Spring Boot