|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/contract-testing-with-spring-cloud-contract/
课程评论:没有评论
**课程名称:** 使用 Spring Cloud Contract 进行合同测试 **课程概述:** 本课程主要介绍 Spring Cloud Contract,一个用于合同测试的强大工具。通过学习本课程,您将能够: * **提升信心,减少风险:** 在生产版本发布时,为您的团队提供更多信心,并创建稳健的集成测试,避免与其他团队产生依赖。 * **克服传统集成测试的弊端:** 了解传统测试方法(功能测试和 Mock 服务器)的局限性,如测试速度慢、虚假 dương性、易出错、反馈滞后以及团队依赖。 * **理解合同测试的优势:** 学习合同测试如何通过双方就请求和响应格式达成一致(即合同),来解决上述问题,提高项目质量。 * **掌握 Spring Cloud Contract 的实现:** 深入了解 Spring Cloud Contract 的工作原理以及如何在实际项目中应用它。 * **进行 HTTP 通信的集成测试:** 学习如何使用 Spring Cloud Contract 为 HTTP 通信进行集成测试。 * **有效共享合同:** 学习如何与需要进行集成的团队成员共享合同。 **先修知识建议:** 为了更好地掌握本课程内容,建议您具备以下知识: * Java 语言基础 * Spring Boot 基础 * Mockito 和 JUnit 的单元测试知识 **后续课程推荐:** 如果您对基于消息的通信进行合同测试感兴趣,建议您在本课程完成后学习“使用 Spring Cloud Contract 进行消息通信的合同测试”。
Spring Cloud Contracts is a powerful tool to do contract testing. Using it you will be able to provide a lot of confidence to your team when making production releases and create solid integration tests avoiding any dependencies with other teams.Before contract testing, devs had functional testing and mock servers as unique alternatives for integration test creation. This two have multiple advantages but even more disadvantages like:Slow tests.False positives.Human error proneness.Late feedback.Dependencies with other teams.Once contract testing got into the landscape, it was able to remedy all these issues by permitting the two sides of the communication to agree on how the request and responses should look like through a contract. Nonetheless, contract testing is not here to replace functional tests or unit tests but to support them.For all these reasons this course will provide you with multiple lectures for you to learn:Which strategies are used to test applications.What contract testing is and how can improve the quality of any project you work on.How contract testing is implemented by Spring Cloud Contracts.How to use Spring Cloud Contracts to make integration tests for HTTP communications.How to share your contracts with the members that are to suppose to integrate.To be able to harness this course completely, it's strongly recommended to have knowledge of Java language, basic Spring Boot and unit testing with Mockito and JUnit.If you're interested in doing contract testing but for message-based communications, I recommend taking my other course after completing this one: Contract Testing and Messaging with Spring Cloud Contract