Skip to content

Commit c0ce55e

Browse files
authored
Merge pull request quarkusio#49756 from holly-cummins/quarkusmaintest-strategies
Add guidance on when to use QuarkusMainTest
2 parents 9c4adb5 + 32f3cdb commit c0ce55e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/main/asciidoc/command-mode-reference.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ public class HelloIT extends HelloTest {
256256
- Using Panache entities
257257
- Using mocks with `@InjectMock`
258258

259+
Usually, it's best to use a combination of `@QuarkusMainTest` tests for testing application externals, and `@QuarkusTest` tests for fine-grained testing which requires access to application internals.
260+
259261
==== Mocking
260262

261263
CDI injection is not supported in the `@QuarkusMainTest` tests.
@@ -317,5 +319,3 @@ public class MyCommandModeTest {
317319
<3> The scope of the mocked bean should be consistent with the original one.
318320

319321
Using this pattern, you can enable specific alternatives for any given test.
320-
321-

0 commit comments

Comments
 (0)