How to exclude integration tests on Spring Boot test, gradle based on external properties?
tried with @ActiveProfiles. But it did not work
How to exclude integration tests on Spring Boot test, gradle based on external properties?
tried with @ActiveProfiles. But it did not work
Here is the solution i found.
You can exclude this based on the external system properties.
-Dtest.profile=integration
and in build.gradle
test {
if (System.properties['test.profile'] != 'integration') {
exclude '**/*integrationTests*'
}
}