Skip to content

docs(skills): minimal test coverage rule in testing-patterns - #3094

Merged
IvanKirpichnikov merged 1 commit into
mainfrom
docs/test-minimalism-skill
Sep 4, 2026
Merged

docs(skills): minimal test coverage rule in testing-patterns#3094
IvanKirpichnikov merged 1 commit into
mainfrom
docs/test-minimalism-skill

Conversation

@Lancetnik

Copy link
Copy Markdown
Member

Description

Adds a rule to the testing-patterns skill: new code earns a test only when nothing else already goes red on the same breakage (another test, or mypy over library code that already exercises the path). Also tightens the docstring policy — tests carry no docstring beyond the regression pattern's issue-URL; explain with a single-line comment over the line instead of prose in a docstring.

This absorbs two standing pieces of maintainer feedback (fewer, essential tests; no test docstrings) into the checked-in skill instead of leaving them as ephemeral guidance.

Type of change

  • Documentation (typos, code examples, or any documentation updates)

Checklist

  • I have conducted a self-review of my own code

New code earns a test only when nothing already goes red on the same
breakage (another test, or mypy over library code). No docstrings on
tests beyond the regression pattern's issue-URL; explain with a
single-line comment over the line instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@IvanKirpichnikov
IvanKirpichnikov added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 657dc33 Sep 4, 2026
31 checks passed
@IvanKirpichnikov
IvanKirpichnikov deleted the docs/test-minimalism-skill branch September 4, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants