Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b86yyhhudsSLnwNUFY
11 lines
330 B
Markdown
11 lines
330 B
Markdown
---
|
|
paths:
|
|
- "src/test/**/*.java"
|
|
---
|
|
|
|
# Test rules
|
|
- JUnit 6 and AssertJ. Static-import `assertThat`.
|
|
- Name tests as sentences: `tenUnitsGetTenPercentOff`, not `testDiscount`.
|
|
- Unit-test services without Spring. Use `@SpringBootTest` only for controller wiring.
|
|
- One behaviour per test. No logic (loops, ifs) inside a test.
|