Cantitate/Preț
Produs

Contract Testing in Action

Autor Marie Cruz, Lewis Prescott
en Limba Engleză Paperback – 31 dec 2024

Actualizarea majoră pe care o aduce această lucrare în peisajul dezvoltării software este trecerea de la testarea de integrare tradițională, adesea lentă și fragilă, la un model predictiv bazat pe contracte între servicii. Putem afirma că volumul Contract Testing in Action servește drept ghid tehnic riguros pentru echipele care gestionează microservicii și sisteme cu cuplaj slab, unde numărul de interacțiuni face imposibilă testarea manuală exhaustivă. Reținem că autorii, Marie Cruz și Lewis Prescott, nu se rezumă la teorie, ci oferă implementări concrete folosind ecosistemul Pact și GitHub Actions. Structura narativă a cărții urmează ciclul de viață al dezvoltării software, începând cu fundamentul tehnic al testării de contract și avansând spre scenarii complexe, cum ar fi testarea bidirecțională și gestionarea arhitecturilor bazate pe evenimente. Credem că valoarea adăugată constă în capitolele dedicate stocării și securizării contractelor, elemente critice pentru un pipeline CI/CD robust. Abordarea diferă de Testing Web APIs de Mark Winteringham prin faptul că este mai puțin abstractă și mult mai aplicabilă: în timp ce Winteringham explorează strategiile generale de calitate, Contract Testing in Action se axează strict pe mecanica verificării compatibilității API-urilor, oferind soluții practice pentru dilema „can-i-deploy”. De asemenea, spre deosebire de Writing API Tests with Karate, care se concentrează pe un singur framework de testare funcțională, această lucrare publicată de Manning Publications analizează transformarea modului în care echipele colaborează, oferind argumente solide pentru stakeholderi și ghiduri de implementare pentru GraphQL și clienți mobili.

Citește tot Restrânge

Preț: 31685 lei

Preț vechi: 39606 lei
-20%

Puncte Express: 475

Carte disponibilă

Livrare economică 30 mai-13 iunie
Livrare express 16-22 mai pentru 7274 lei


Specificații

ISBN-13: 9781633437241
ISBN-10: 1633437248
Pagini: 304
Dimensiuni: 188 x 232 x 32 mm
Greutate: 0.56 kg
Editura: Manning Publications

De ce să citești această carte

Recomandăm această carte inginerilor QA și dezvoltatorilor care doresc să elimine erorile de integrare în producție. Cititorul câștigă o metodologie clară pentru a implementa testarea bazată pe consumator (consumer-driven), reducând dependența de mediile de testare complexe. Este un instrument esențial pentru oricine lucrează cu microservicii în Java sau JavaScript și dorește să accelereze deploy-ul prin automatizarea validării contractelor între componente.


Descriere

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. Large, loosely coupled systems have hundreds, even thousands, of interactions—and traditional testing can often struggle to keep up! Enter contract testing. This rapidly growing new approach checks API and service compatibility by verifying it against an agreed contract. No more unexpected integration issues, and no more breaking things in production! 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 event-driven architecture. 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 technology It’s difficult to test API and event-based services that can be used by many applications simultaneously through a complex network of integrations. Contract testing offers a straightforward solution. API and service compatibility are verified against agreed-upon contracts that each component in the system—and the developers that build them—can understand and respect. This transformative technique helps uncover integration issues early and adds vital transparency to any system. About the book Contract Testing in Action makes it easy for your team to adopt contract testing for microservices and other API-centric systems. You’ll start by learning how contract testing fits into the software development lifecycle, and then you’ll explore practical methods to integrate it with your own tech stack and practices. You’ll use leading contract testing tools—including Pact, PactFlow, and GitHub Actions—to build your own contract testing framework, set up consumer-driven contract testing for REST and GraphQL APIs, and integrate it into your CI/CD pipeline. What's inside • Testing microservices with Pact • Consumer-driven and bi-directional contract testing • Building a contract testing framework • Converting API integration tests to contract tests About the reader For software developers and quality engineers who have worked with Java or JavaScript, and APIs. About the author Marie Cruz is a Software Tester with over ten years of experience and also a Developer Advocate at Grafana Labs. Lewis Prescott is a Test Specialist at IBM with over nine years experience in software testing. Table of Contents Part 1 1 Introduction to contract testing 2 How contract testing fits into wider testing concepts 3 A technical overview of contract testing Part 2 4 Implementing consumer-driven contract testing for web applications 5 Implementing consumer-driven contract testing for mobile clients 6 Implementing consumer-driven provider contract tests 7 Contract testing for GraphQL 8 Contract testing for event-driven architecture 9 Storing, hosting, and securing the contracts 10 Setting up contract testing in a CI/CD pipeline Part 3 11 Implementing provider-driven contract testing 12 Moving integration tests to contract tests Appendix A Tool comparisons Appendix B Setting up project requirements for consumer contract testing (web applications) Appendix C Answers to chapter exercises