You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/getting-started-testing.adoc
+7-7
Original file line number
Diff line number
Diff line change
@@ -1224,20 +1224,20 @@ public @interface WithRepeatableTestResource {
1224
1224
}
1225
1225
----
1226
1226
1227
-
=== Usage of `@WithTestResources`
1227
+
=== Usage of `@WithTestResource`
1228
1228
1229
-
While test resources provided by `@QuarkusTestResource` are available either globally or restricted to the annotated test class (`restrictToAnnotatedClass`), the annotation `@WithTestResources` allows to additionally group tests by test resources for execution.
1230
-
`@WithTestResources` has a `scope` property that takes a `TestResourceScope` enum value:
1229
+
While test resources provided by `@QuarkusTestResource` are available either globally or restricted to the annotated test class (`restrictToAnnotatedClass`), the annotation `@WithTestResource` allows to additionally group tests by test resources for execution.
1230
+
`@WithTestResource` has a `scope` property that takes a `TestResourceScope` enum value:
1231
1231
1232
1232
- `TestResourceScope.MATCHING_RESOURCES` (default): Quarkus will group tests with the same test resources and run them together. After a group has been executed, all test resources will be stopped, and the next group will be executed.
1233
1233
- `TestResourceScope.RESTRICTED_TO_CLASS`: The test resource is available only for the annotated test class and will be stopped after the test class has been executed.
1234
-
- `TestResourceScope.GLOBAL`: Test resources apply to all tests in the testsuite
1234
+
- `TestResourceScope.GLOBAL`: Test resources apply to all tests in the test suite
1235
1235
1236
1236
Quarkus needs to restart if one of the following is true:
1237
1237
1238
-
- At least one the existing test resources is restricted to the test class
1239
-
- At least one the next test resources is restricted to the test class
1240
-
- Different {@code MATCHING_RESOURCE} scoped test resources are being used
1238
+
- At least one of the test resources of the current test is restricted to the test class
1239
+
- At least one of the test resources of the next test is restricted to the test class
1240
+
- Different `MATCHING_RESOURCES` scoped test resources are being used
0 commit comments