From the course: DevOps Foundations: Microservices

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

End-to-end and contract testing

End-to-end and contract testing - Kubernetes Tutorial

From the course: DevOps Foundations: Microservices

Start my 1-month free trial

End-to-end and contract testing

- [Instructor] Another well-known type of testing is End-to-End testing. This type of test tests an entire system. End-to-end tests are difficult to do well with microservices for a number of reasons, such as the need to deploy multiple services together before testing. When testing one service, which version of other services should be used? One way to solve this problem is to have the continuous integration pipelines of each service fan into a single end-to-end test stage. That said, there are a number of other disadvantages. Tests of this nature tend to be brittle and flaky, and the question of ownership, who should write or maintain end-to-end tests, can be difficult to answer. Another important question raised by end-to-end tests is how long is too long to run? As test suites take longer, developer productivity decreases. Due to these difficulties, I would offer up the following guidelines for end-to-end tests. One, write as few end-to-end tests as possible. Two, focus on user…

Contents