We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d29901 commit dbab476Copy full SHA for dbab476
1 file changed
.github/agents/knowledge/testing-general-patterns.md
@@ -19,7 +19,8 @@
19
over wrapping most of the test body in try-with-resources.
20
- For resources created in `@BeforeAll` or other class-scoped setup, prefer
21
`AutoCleanupExtension` with `deferAfterAll(...)` over nested `@AfterAll` cleanup
22
- chains.
+ chains. A single solitary `@AfterAll` is acceptable when `AutoCleanupExtension` is not
23
+ otherwise present or needed in the class.
24
- Reuse an existing `cleanup` extension when one is already in scope.
25
Otherwise, add a `@RegisterExtension` field when the deferred-cleanup pattern improves
26
clarity or avoids wrapping most of the test body.
0 commit comments