|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/junit-5-java-testing-framework/
课程评论:没有评论
课程名称:JUnit 5 - 完整实用指南 课程概述:欢迎参加Uplatz的JUnit 5课程。JUnit是Java生态系统中一款广受欢迎的单元测试框架,而JUnit 5基于Java 8版本增加了许多新特性,是Java应用程序中使用最广泛的测试框架。此课程将帮助您了解单元测试的重要性、良好单元测试的结构、动态和参数化测试、扩展、代码覆盖率等主题,以及如何使用JUnit 5创建和执行单元测试。 课程内容涵盖: - JUnit Jupiter:全新的编程和扩展模型,包含JUnit的新注解和TestEngine实现。 - JUnit Platform:定义了用于开发新的测试框架的TestEngine API,并提供了从命令行启动平台的控制台启动器及为Gradle和Maven构建插件的支持。 - JUnit Vintage:支持在JUnit 5平台上运行JUnit 3和JUnit 4编写的测试,确保向后兼容性。 课程大纲: 1. JUnit介绍 2. 在Maven项目中添加JUnit5依赖 3. JUnit5注解 4. JUnit5 @RepeatedTest注解 5. JUnit5断言 6. JUnit5超时功能 7. JUnit5预期异常 8. JUnit5参数化测试 9. 在Maven中运行单元测试 10. JUnit5标签与过滤 11. Hamcrest框架 12. Spring Boot Repository上的单元测试 13. Spring Boot集成测试 本课程专注于JUnit框架的使用,适合希望深入理解和掌握JUnit 5的学习者。
A warm welcome to the JUnit 5 course by Uplatz.JUnit is a popular unit-testing framework in the Java ecosystem. JUnit 5 added many new features based on the Java 8 version of the language. JUnit 5 is the most widely used testing framework for Java applications. For a very long time, JUnit has been doing its job perfectly.This JUnit 5 course will help you learn how to understanding why unit tests are important, structure of good unit tests, dynamic and parameterized tests, extensions, code coverage, create and execute unit tests with JUnit 5, and many more topics. This JUnit course focuses on the usage of the framework.JUnit 5 consists of several different modules:JUnit Jupiter: JUnit Jupiter includes new programming and extension models for writing tests. It has all new JUnit annotations and TestEngine implementation to run tests written with these annotations.JUnit Platform: To be able to launch junit tests, IDEs, build tools or plugins need to include and extend platform APIs. It defines the TestEngine API for developing new testing frameworks that runs on the JUnit platform. It also provides a Console Launcher to launch the platform from the command line and build plugins for Gradle and Maven.JUnit Vintage: It provides support to run JUnit 3 and JUnit 4 written tests on the JUnit 5 platform. It's there is backward compatibility.JUnit 5 - Course SyllabusJUnit IntroductionAdding JUnit5 dependency in Maven projectJUnit5 AnnotationsJUnit5 @RepeatedTest AnnotationJUnit5 AssertionsJUnit5 TimeoutsJUnit5 Expected ExceptionsJUnit5 Parameterized TestsJUnit5 How to run Unit Test with MavenJUnit5 Tagging and FilteringHamcrest FrameworkUnit Testing on Spring Boot RepositorySpring Boot Integration Testing