Cursor rule
.cursor/rules/test-maintenance.mdcTest maintenance — classify failures before changing code or tests
Cursor rules
Quality
67/100
Scores the file, not the repository.Length
256 words
6 headings · 0 code blocksRepository
2
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Test Philosophy78A failing test is evidence, not the problem itself.910Before modifying either product code or tests, classify the failure.1112## Case 1 — Product regression1314The test still describes the intended behavior.1516Action:17- Fix the production code.18- Do not weaken the test.1920Examples:21- Wrong calculation22- Broken API response23- Missing UI element24- Queue logic regression25- Gameplay bug2627## Case 2 — Test regression2829The product intentionally evolved and the test no longer reflects reality.3031Examples:32- Login/session architecture changed33- Fixtures became obsolete34- Route renamed intentionally35- New initialization flow36- UI structure intentionally redesigned3738Action:39- Update the fixture or test.40- Preserve the original requirement.41- Keep assertions as strict as before.4243## Forbidden4445Never make a test green by:4647- removing assertions48- replacing assertions with weaker ones49- using `assert True`50- adding `pytest.skip`51- changing expected behaviour without an approved design decision52- ignoring failures5354## Required5556When updating a failing test, always explain:57581. Why the old test became invalid.592. Which requirement is still being verified.603. Why the updated test proves the same behaviour.6162## Genesis Colonies Rules6364- Session tests use `session_transaction()` where appropriate.65- Commit database changes before HTTP requests when required.66- Prefer realistic fixtures over mocking gameplay.67- Keep tests close to real player behaviour.68- Never introduce duplicate tests for the same canonical feature.69- A green test suite must mean the product actually works, not merely that the tests were made easier.70
Also in Gurgenbaba/genesis-colonies
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Gurgenbaba/genesis-colonies.cursor/rules/battle-lab-visual.mdc · 2 | Cursor rules | stylesecurityuido-not | 63/100 | 3 days ago | |
| Gurgenbaba/genesis-colonies.cursor/rules/genesis-colonies-ui-design.mdc · 2 | Cursor rules | buildstylearchui+1 | 67/100 | 3 days ago | |
| Gurgenbaba/genesis-colonies.cursor/rules/genesis-colonies.mdc · 2 | Cursor rules | styleuido-notagent-behaviour+1 | 59/100 | 3 days ago | |
| Gurgenbaba/genesis-colonies.cursor/rules/no-dead-code-no-bloat.mdc · 2 | Cursor rules | no sections | 44/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 3 days ago |
