Cursor rule
.cursor/rules/testing.mdcTesting conventions (pytest, asyncio, unit vs integration)
Cursor rules
Quality
67/100
Scores the file, not the repository.Length
143 words
3 headings · 0 code blocksRepository
0
— · pushed 54 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Testing Conventions89- `pytest` with `asyncio_mode = auto` — write `async def test_*` directly, no10 per-test `@pytest.mark.asyncio` needed.11- Test functions take **no docstrings** (the name is the description; ruff `D`12 rules are disabled under `tests/`). Use a clear `test_<behavior>` name instead.13- Build event payloads via `tests/factories.py`, not inline dicts, so the event14 shape stays in one place.1516# Unit vs integration1718- **Unit tests** must be hermetic: mock stores/clients, require no Docker, and19 run under the default `pytest` invocation.20- **Integration tests** that need real services (testcontainers / Docker) must be21 marked `@pytest.mark.integration` (or live in a module marked `pytestmark =22 pytest.mark.integration`). They are deselected by default; run with23 `pytest -m integration`.2425# What to cover2627Prioritize business logic and error/degradation paths: retry→backoff→DLQ,28backpressure (`QueueFull` → 429), cache miss→hit, and graceful degradation when29ES/Redis are down. Don't test framework behavior.30
Also in jleist-clemson/acheron
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 |
|---|---|---|---|---|---|
| jleist-clemson/acheron.cursor/rules/api-routes.mdc · 0 | Cursor rules | styleapi | 57/100 | 3 days ago | |
| jleist-clemson/acheron.cursor/rules/background-tasks.mdc · 0 | Cursor rules | monorepo | 58/100 | 3 days ago | |
| jleist-clemson/acheron.cursor/rules/elasticsearch-mapping.mdc · 0 | Cursor rules | styletypesdo-not | 58/100 | 3 days ago | |
| jleist-clemson/acheron.cursor/rules/python-standards.mdc · 0 | Cursor rules | lint-formatapido-notdocs | 72/100 | 3 days ago | |
| jleist-clemson/acheronAGENTS.md · 0 | AGENTS.md | testlint-formatstyledo-not+2 | 63/100 | 3 days ago | |
| jleist-clemson/acheronCLAUDE.md · 0 | CLAUDE.md | agent-behaviour | 16/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 | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/github-actions-testing.mdc · 121 | Cursor rules | setupbuildstylearch+4 | 93/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/creating-agents-md.mdc · 121 | Cursor rules | testlint-formatstylearch+7 | 92/100 | 3 days ago | |
| coollabsio/coolify.cursor/rules/coolify-ai-docs.mdc · 60k | Cursor rules | buildteststylearch+5 | 92/100 | 3 days ago | |
| iloveitaly/llm-ide-rules.cursor/rules/general.mdc · 13 | Cursor rules | teststyledo-notagent-behaviour+1 | 92/100 | 3 days ago |
