RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/jleist-clemson/acheron

Cursor rule

.cursor/rules/testing.mdc

Testing conventions (pytest, asyncio, unit vs integration)

Cursor rules

Quality

67/100

Scores the file, not the repository.

Length

143 words

3 headings · 0 code blocks

Repository

0

— · pushed 54 days ago

Last changed

3 days ago

First indexed 3 days ago.
jleist-clemson/acheron/.cursor/rules/testing.mdcRawGitHub
1---
2description: Testing conventions (pytest, asyncio, unit vs integration)
3globs: tests/**/*.py
4alwaysApply: false
5---
6 
7# Testing Conventions
8 
9- `pytest` with `asyncio_mode = auto` — write `async def test_*` directly, no
10 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 event
14 shape stays in one place.
15 
16# Unit vs integration
17 
18- **Unit tests** must be hermetic: mock stores/clients, require no Docker, and
19 run under the default `pytest` invocation.
20- **Integration tests** that need real services (testcontainers / Docker) must be
21 marked `@pytest.mark.integration` (or live in a module marked `pytestmark =
22 pytest.mark.integration`). They are deselected by default; run with
23 `pytest -m integration`.
24 
25# What to cover
26 
27Prioritize business logic and error/degradation paths: retry→backoff→DLQ,
28backpressure (`QueueFull` → 429), cache miss→hit, and graceful degradation when
29ES/Redis are down. Don't test framework behavior.
30 

Commands it names

  • pytest
  • pytest -m integration

Sections

  • Testing Conventions
  • Unit vs integration
  • What to cover

What it covers

testlint-formatcode-styletesting-strategy

Stack — with the evidence

python

(1.00)

docker

(1.00)

pytest

(0.85)

fastapi

(0.70)

redis

(0.70)

ruff

(0.60)

github-actions

(0.60)

Glob targeting

  • tests/**/*.py

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
jleist-clemson
Language
—
License
—
Archived
no

All configs in this repo

Also in jleist-clemson/acheron

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
jleist-clemson/acheron.cursor/rules/api-routes.mdc · 0Cursor rulespythondocker+5styleapi57/1003 days ago
jleist-clemson/acheron.cursor/rules/background-tasks.mdc · 0Cursor rulespythondocker+5monorepo58/1003 days ago
jleist-clemson/acheron.cursor/rules/elasticsearch-mapping.mdc · 0Cursor rulespythondocker+5styletypesdo-not58/1003 days ago
jleist-clemson/acheron.cursor/rules/python-standards.mdc · 0Cursor rulespythondocker+5lint-formatapido-notdocs72/1003 days ago
jleist-clemson/acheronAGENTS.md · 0AGENTS.mdpythondocker+5testlint-formatstyledo-not+263/1003 days ago
jleist-clemson/acheronCLAUDE.md · 0CLAUDE.mdpythondocker+5agent-behaviour16/1003 days ago
Diff against .cursor/rules/api-routes.mdc Diff against .cursor/rules/background-tasks.mdc Diff against .cursor/rules/elasticsearch-mapping.mdc Diff against .cursor/rules/python-standards.mdc Diff against AGENTS.md Diff against CLAUDE.md

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
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49Cursor rulestypescriptcypress+14setupbuildteststyle+496/1003 days ago
pr-pm/prpm.cursor/rules/github-actions-testing.mdc · 121Cursor rulestypescriptnode+17setupbuildstylearch+493/1003 days ago
pr-pm/prpm.cursor/rules/creating-agents-md.mdc · 121Cursor rulestypescriptnode+16testlint-formatstylearch+792/1003 days ago
coollabsio/coolify.cursor/rules/coolify-ai-docs.mdc · 60kCursor rulesjavascriptphp+6buildteststylearch+592/1003 days ago
iloveitaly/llm-ide-rules.cursor/rules/general.mdc · 13Cursor rulespythonpytest+2teststyledo-notagent-behaviour+192/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