spring-boot-testing-pyramid
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.

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