How does eBay utilize Contract Testing for their Microservices?
HTML-код
- Опубликовано: 25 авг 2024
- What is Consumer-Driven Contract Testing and how could eBay use it to improve testing their Microservice APIs with Pact? Let's dive into the theory of Contract Testing, the potential benefits of using it, and some practical examples.
Consider supporting the channel by clicking the "Thanks" button ❤️
🙌 Become my Patreon and get exclusive perks: / softdevdiaries
💼 Follow me on LinkedIn and drop me a message if you'd like: / gusgadirov
💻 Also, let's connect on GitHub: github.com/gusgad
📚 Resources:
Original article: tech.ebayinc.c...
Pact: github.com/pac...
And don't forget to subscribe for more videos like this 😊
Really informative, thx !
Is it completely cypress Or only pact ? Within the pact library do we have axios , describe and it block? Can we use pact library in cypress ?
I just found your channel, and its great, keep on
Thanks buddy!
Great sir❤
you say pact is the best cdct framework - did you do an evaluation that you could share. We are currently debating SCC vs PACT
How is this different from API testing? How does this compare to API testing? Because it seems like we're already doing this in Cypress API testing, all be it there's no "broker" but it's exactly the same concept, you call an API and check that the response follows a particular shape. On the other end, you call an API and mock whatever other API calls it makes.
API Testing is much broader and ensures that services and their dependencies are well-integrated with each other and produce the right result. For example, one service might request data from another one and API testing with Cypress would verify that. Contract testing on the other hand has a smaller scope, I would say on a single team level. If a team wants to avoid setting up the dependencies (services) from other teams and test their stack in isolation then Contract Testing would be preferred. At the end of the day both are necessary, but API Testing (or what you decsribed can also be called a system-test) lives higher on the testing pyramid, while Contract Testing is lower, since it's less constly to write and execute.