12
Testing
This chapter explores automated testing in modern software development, highlighting its role in ensuring quality, enabling faster releases, and supporting continuous delivery in Agile and DevOps-driven environments. It also presents a practical exploration of the testing pyramid—a foundational model that categorizes testing into three levels: unit, integration, and end-to-end (E2E) tests—with hands-on examples of unit and integration tests using tools such as JUnit 5, Mockito, Testcontainers, MockMvc, RestAssured, and Spring Boot’s testing support for loading full application contexts.
In addition, it also covers performance testing with JMeter, Test-Driven Development (TDD), and Behavior-Driven Development (BDD) approaches, demonstrating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access