Chapter 2
Cloud-Native Continuous Integration
Section 4
Testing Cloud-Native Applications (Part 1)
Testing cloud-native microservices is critical for creating robust, reliable, and scalable applications. It is crucial to have an automated CI pipeline that tests the main branch of the application and creates a checkpoint for pull requests from other branches. There are well-defined and established levels of testing in the industry; however, in this section, unit testing will be discussed for a cloud-native microservice. Before diving into the levels of testing, let's consider creating a sample API. This API will be created with the perspective of organizing, retrieving, and analyzing information on books in a library.