Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Testsuite PoC - Configuration when running tests #30608

@stianst

Description

@stianst

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>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions