-
[NA] [BE] Add Cursor rules for backend test best practices (#3709)
发布于
2025-10-21 15:57:20 +00:00 - [NA] [BE] Add Cursor rules for backend test best practices
Added comprehensive test rules based on PR feedback from OPIK-2598:
- test-parameterization.mdc: Guidelines for using @ParameterizedTest to reduce duplication, proper test coverage, and using Comparator patterns
- test-async-patterns.mdc: When to use/avoid Awaitility, avoiding Thread.sleep(), handling CI timing issues
- test-assertions.mdc: Proper sorting test assertions to avoid self-fulfilling tests, testing against known data
- code-style.mdc: String template constants, proper imports, and code organization patterns
These rules will automatically apply when working on Java test files to enforce consistent testing patterns.
-
merging mdcs & fixing comments
-
fixing comments
下载附件