spring-boot-testing-pyramid icon indicating copy to clipboard operation
spring-boot-testing-pyramid copied to clipboard

Spring Boot Testing Pyramid

This project includes Unit, Integration & Acceptance tests for a simple Spring Boot REST controller. The goal of this was to see how to write each type of test in Spring & see the advantages/disadvantages of each.

Screenshot 2020-11-06 at 19 08 54

Unit tests

Testing individual piece of code.

Integration tests

Testing integration of units together.

Acceptance tests

Testing the application works the way a user expects it to. This can validate business requirements.

Running locally

mvn spring-boot:run

Testing locally

mvn test