Most developers do understand that writing tests is important, but more often than not, they are the most neglected of all. Those venturing into the testing arena can easily get overwhelmed with the jargon and tools that are doing rounds on the internet. It helps if you re-establish the gains that you have set out to achieve before picking up the tools. We will go over the testing strategies and how you can build and run the tests for a microservice-based architecture.
In this chapter, we will cover the following topics:
- Testing strategies for microservices:
- Understanding the testing pyramid
- Microservice testing challenges
- Contract testing
- Balancing act of tests
- Testing in practice:
- Integration testing with Arquillian
- Acceptance testing with Cucumber