Spring Boot + Gradle : @IfProfileValue based test separation
This example illustrates a simple approach to partition your tests into unit tests and integration tests.
- allows you to keep all tests in the same source directory
- is annotation based: annotate unit tests with
@UnitTestand integration tests with
- uses Gradle to select which "profile" to run (unit tests or integration tests)
Running unit tests
Running integration tests