Contract Testing in Action: With Pact, Pactflow, and Github Actions (合約測試實戰:使用 Pact、Pactflow 和 Github Actions)

Cruz, Marie, Prescott, Lewis

  • 出版商: Manning
  • 出版日期: 2024-12-31
  • 售價: $2,200
  • 貴賓價: 9.5$2,090
  • 語言: 英文
  • 頁數: 304
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1633437248
  • ISBN-13: 9781633437241
  • 相關分類: Version Control
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Contract testing is a simple, reliable way to make sure that each service and API plays nice with other components so you can deploy independently and safely.

In a microservices-first world, traditional testing struggles to keep up with all the potential interactions in a large, loosely-coupled system. Contract testing checks the compatibility of an API or service by validating it against an agreed contract. This straightforward method uncovers integration issues early and adds valuable transparency to compatibility expectations.

In Contract Testing in Action you'll learn:

- The core concepts and practices of contract testing
- Testing microservices with Pact
- Consumer-driven and bi-directional testing
- Building a contract testing framework
- Converting API integration tests to contract tests

Contract Testing in Action introduces the practice of contract testing through engaging hands-on examples. You'll learn how to introduce contract tests for multiple different types of communication, from REST APIs to GraphQL. By the end of this practical guide, you'll be comfortable with advanced contract testing concepts like can-i-deploy, provider states, and webhooks. You'll even get tips on how to introduce contract testing to your team and other business stakeholders.

Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.

About the book

Contract Testing in Action is a hands-on guide to contract testing for microservices applications and other systems of loosely-coupled components. After learning the basics of contract design and implementation, you'll dive into constructing your own contract testing framework. You'll explore the leading contract testing tools, including Pact, PactFlow, and GitHub Actions. Plus, you'll set up consumer-driven contract testing for REST and GraphQL APIs and learn to integrate contract testing into a CI/CD pipeline. Finally, you'll delve into provider-driven contract testing, which simplifies adoption by utilizing your existing stack and practices.

About the reader

For experienced software developers and quality engineers who have worked with Java, JavaScript, and APIs.

About the author

Marie Cruz is a Software Tester with over 10 years of experience. Currently a Senior Developer Advocate for Grafana Labs, she has previously worked as an Engineering Manager responsible for driving continuous testing and quality improvements, and a Principal Engineer focused on introducing recommended practices for testing and test automation frameworks.

Lewis Prescott is a Test Specialist at IBM. He has 9 years experience in software testing, is a recognized champion of Contract Testing and course author at Test Automation University, as well as an active mentor in the testing community.

商品描述(中文翻譯)

合約測試是一種簡單且可靠的方法,可以確保每個服務和 API 能夠與其他組件良好協作,讓您能夠獨立且安全地進行部署。

在以微服務為主的世界中,傳統測試難以跟上大型鬆耦合系統中所有潛在互動的步伐。合約測試通過根據約定的合約驗證 API 或服務的相容性。這種直接的方法能夠及早發現整合問題,並為相容性期望增添寶貴的透明度。

在《合約測試實務》中,您將學到:

- 合約測試的核心概念和實踐
- 使用 Pact 測試微服務
- 消費者驅動和雙向測試
- 建立合約測試框架
- 將 API 整合測試轉換為合約測試

《合約測試實務》通過引人入勝的實作範例介紹合約測試的實踐。您將學會如何為多種不同類型的通訊引入合約測試,從 REST API 到 GraphQL。到本實用指南結束時,您將對進階的合約測試概念如 can-i-deploy、提供者狀態和 webhook 感到熟悉。您甚至會獲得如何將合約測試引入您的團隊和其他業務利益相關者的建議。

購買印刷版書籍可獲得 Manning Publications 提供的免費 PDF 和 ePub 格式電子書。

關於本書

《合約測試實務》是一本針對微服務應用程式和其他鬆耦合組件系統的合約測試實作指南。在學習合約設計和實施的基礎知識後,您將深入構建自己的合約測試框架。您將探索領先的合約測試工具,包括 Pact、PactFlow 和 GitHub Actions。此外,您將為 REST 和 GraphQL API 設置消費者驅動的合約測試,並學習如何將合約測試整合到 CI/CD 流程中。最後,您將深入了解提供者驅動的合約測試,這簡化了採用過程,利用您現有的技術堆疊和實踐。

關於讀者

本書適合有經驗的軟體開發人員和質量工程師,特別是那些曾經使用 Java、JavaScript 和 API 的專業人士。

關於作者

Marie Cruz 是一位擁有超過 10 年經驗的軟體測試工程師。目前擔任 Grafana Labs 的高級開發者倡導者,之前曾擔任工程經理,負責推動持續測試和質量改進,以及專注於引入測試和測試自動化框架最佳實踐的首席工程師。

Lewis Prescott 是 IBM 的測試專家。他在軟體測試方面擁有 9 年的經驗,是合約測試的公認倡導者,也是 Test Automation University 的課程作者,並且在測試社群中擔任活躍的導師。

作者簡介

Marie Cruz is a Software Tester with over 10 years of experience. Currently a Senior Developer Advocate for Grafana Labs, she has previously worked as an Engineering Manager responsible for driving continuous testing and quality improvements, and a Principal Engineer focused on introducing recommended practices for testing and test automation frameworks.

Lewis Prescott is a Test Specialist at IBM. He has 9 years experience in software testing, is a recognized champion of Contract Testing and course author at Test Automation University, as well as an active mentor in the testing community.

作者簡介(中文翻譯)

Marie Cruz 是一位擁有超過 10 年經驗的軟體測試工程師。目前擔任 Grafana Labs 的高級開發者倡導者,之前曾擔任工程經理,負責推動持續測試和品質改進,以及擔任首席工程師,專注於引入測試和測試自動化框架的最佳實踐。

Lewis Prescott 是 IBM 的測試專家。他在軟體測試方面擁有 9 年的經驗,是合約測試的公認倡導者,也是 Test Automation University 的課程作者,同時在測試社群中擔任活躍的導師。