Skip to content

Commit 6ee0a3b

Browse files
authored
Docs: Add guidelines for tests (#16784)
1 parent 12b7f7d commit 6ee0a3b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

site/docs/contribute.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,12 @@ This helps separate logical sections of the code, making it easier to read and d
478478

479479
## Testing
480480

481+
### Conventions and recommendations
482+
483+
- Test class names must start with `Test`, for example `TestExample`.
484+
- Omit the `public` modifier for test classes, test methods, and lifecycle methods for newly added tests.
485+
- Omit the `test` prefix for newly added test methods.
486+
481487
### AssertJ
482488

483489
Prefer using [AssertJ](https://github.com/assertj/assertj) assertions as those provide a rich and intuitive set of strongly-typed assertions.

0 commit comments

Comments
 (0)