parent
244176e2b0
commit
32c02bf977
@ -17,7 +17,7 @@ Your goal is to help me write effective unit tests with JUnit 5, covering both s
|
|||||||
|
|
||||||
## Test Structure
|
## Test Structure
|
||||||
|
|
||||||
- Test classes should have a `Test` suffix, e.g., `CalculatorTests` for a `Calculator` class.
|
- Test classes should have a `Test` suffix, e.g., `CalculatorTest` for a `Calculator` class.
|
||||||
- Use `@Test` for test methods.
|
- Use `@Test` for test methods.
|
||||||
- Follow the Arrange-Act-Assert (AAA) pattern.
|
- Follow the Arrange-Act-Assert (AAA) pattern.
|
||||||
- Name tests using a descriptive convention, like `methodName_should_expectedBehavior_when_scenario`.
|
- Name tests using a descriptive convention, like `methodName_should_expectedBehavior_when_scenario`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user