gradlew clean test -Ppostgresql
mvn clean test -Psqlserver
mvn clean test -Pmysql
Each profile activate specific database test groups and run specific Spring profile (in order use correct properties, see application-{profile}.yml files).
In order to create database specific test the test class should extend Abstract{Database}Test class. There is a correct test group declaration and spring profile activation.