RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/Gurgenbaba/genesis-colonies

Cursor rule

.cursor/rules/test-maintenance.mdc

Test 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 blocks

Repository

2

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
Gurgenbaba/genesis-colonies/.cursor/rules/test-maintenance.mdcRawGitHub
1---
2description: Test maintenance — classify failures before changing code or tests
3alwaysApply: true
4---
5 
6# Test Philosophy
7 
8A failing test is evidence, not the problem itself.
9 
10Before modifying either product code or tests, classify the failure.
11 
12## Case 1 — Product regression
13 
14The test still describes the intended behavior.
15 
16Action:
17- Fix the production code.
18- Do not weaken the test.
19 
20Examples:
21- Wrong calculation
22- Broken API response
23- Missing UI element
24- Queue logic regression
25- Gameplay bug
26 
27## Case 2 — Test regression
28 
29The product intentionally evolved and the test no longer reflects reality.
30 
31Examples:
32- Login/session architecture changed
33- Fixtures became obsolete
34- Route renamed intentionally
35- New initialization flow
36- UI structure intentionally redesigned
37 
38Action:
39- Update the fixture or test.
40- Preserve the original requirement.
41- Keep assertions as strict as before.
42 
43## Forbidden
44 
45Never make a test green by:
46 
47- removing assertions
48- replacing assertions with weaker ones
49- using `assert True`
50- adding `pytest.skip`
51- changing expected behaviour without an approved design decision
52- ignoring failures
53 
54## Required
55 
56When updating a failing test, always explain:
57 
581. Why the old test became invalid.
592. Which requirement is still being verified.
603. Why the updated test proves the same behaviour.
61 
62## Genesis Colonies Rules
63 
64- 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 

Commands it names

  • pytest.skip

Sections

  • Test Philosophy
  • Case 1 — Product regression
  • Case 2 — Test regression
  • Forbidden
  • Required
  • Genesis Colonies Rules

What it covers

testcode-styletesting-strategydo-not

Stack — with the evidence

python

(1.00)

flask

(0.70)

postgres

(0.70)

docker

(0.60)

github-actions

(0.60)

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
Gurgenbaba
Language
—
License
—
Archived
no

All configs in this repo

Also in Gurgenbaba/genesis-colonies

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Gurgenbaba/genesis-colonies.cursor/rules/battle-lab-visual.mdc · 2Cursor rulespythonflask+3stylesecurityuido-not63/1003 days ago
Gurgenbaba/genesis-colonies.cursor/rules/genesis-colonies-ui-design.mdc · 2Cursor rulespythonflask+3buildstylearchui+167/1003 days ago
Gurgenbaba/genesis-colonies.cursor/rules/genesis-colonies.mdc · 2Cursor rulespythonflask+3styleuido-notagent-behaviour+159/1003 days ago
Gurgenbaba/genesis-colonies.cursor/rules/no-dead-code-no-bloat.mdc · 2Cursor rulespythonflask+3no sections44/1003 days ago
Diff against .cursor/rules/battle-lab-visual.mdc Diff against .cursor/rules/genesis-colonies-ui-design.mdc Diff against .cursor/rules/genesis-colonies.mdc Diff against .cursor/rules/no-dead-code-no-bloat.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4kCursor rulestypescriptnode+14teststylearchtypes+296/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack