mirror of
https://github.com/keycloak/keycloak.git
synced 2026-04-09 11:09:22 -04:00
24 lines
645 B
Markdown
24 lines
645 B
Markdown
# Test Suites
|
|
|
|
A `@Suite` can supply configuration to be used when running tests from the suite. For example:
|
|
|
|
```java
|
|
@Suite
|
|
@SelectClasses(MyTest.class)
|
|
public class MyTestSuite {
|
|
|
|
@BeforeSuite
|
|
public static void beforeSuite() {
|
|
SuiteSupport.startSuite()
|
|
.registerServerConfig(MyTestSuiteServerConfig.class)
|
|
.includedSuppliers("server", "remote");
|
|
}
|
|
|
|
@AfterSuite
|
|
public static void afterSuite() {
|
|
SuiteSupport.stopSuite();
|
|
}
|
|
}
|
|
```
|
|
|
|
The above example adds some additional Keycloak server configuration, as well as limiting what server suppliers can be used for the suite.
|