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
TIP: It is possible to read annotations from the test class or method to control what the callback shall be doing.
459
459
460
-
WARNING: While it is possible to use JUnit Jupiter callback interfaces like `BeforeEachCallback`, you might run into classloading issues because Quarkus has
461
-
to run tests in a custom classloader which JUnit is not aware of.
462
-
463
460
[[testing_different_profiles]]
464
461
== Testing Different Profiles
465
462
@@ -705,6 +702,11 @@ match the value of `quarkus.test.profile.tags`.
705
702
* `quarkus.test.profile.tags=test2,test3`: In this case only `MultipleTagsTest` will be run because `MultipleTagsTest` is the only `QuarkusTestProfile` implementation whose `tags` method
706
703
matches the value of `quarkus.test.profile.tags`.
707
704
705
+
== Nested Tests
706
+
707
+
JUnit 5 https://junit.org/junit5/docs/current/user-guide/#writing-tests-nested[@Nested tests] may help to structure more complex test scenarios.
708
+
However, note that it is not possible to assign different test profiles or resources to nested tests within the same parent class.
709
+
708
710
== Mock Support
709
711
710
712
Quarkus supports the use of mock objects using two different approaches. You can either use CDI alternatives to
0 commit comments