-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
We want the majority of configuration (server, realms, etc.) to be defined in Java classes. However, some config is required when running tests.
Examples include selecting what server or browser type to use.
To make the configuration more flexibly it should be possible to pass config as system properties, environment variables, or in a configuration file.
An example of how this could look like:
KC_TEST_BROWSER=chrome
mvn -Dkc.test.server=embedded test
Or, with the default config resource on the classpath /keycloak-test.properties if it exists, but can also be specified with kc.test.config property (as a regular test property so can be a sys property or environment variable):
mvn -Dkc.test.config=<myfile>