Repository navigation
Add the reducing-test-suites skill - #113
Merged
Merged
Conversation
Test suites in agent-driven projects grow past what a reader can review, and the high-level rules for writing tests do not shrink a suite that already exists. Cuts by eye or by test count reached little. Add a skill with the reduction process as principles: fix the goal and the loss budget with the owner, measure per-test coverage, fold redundant tests so no assertion is lost, check verdicts by fault injection, get a sign-off before the cut and guard each round. The Python and pytest mechanics live in a reference file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What change is being made
Add the
reducing-test-suitesskill and list it inAGENTS.md. It describes how to shrink an existing test suite to its high-signal core, as principles:The Python and pytest mechanics are in
reference/measuring.md, with a short sketch for other languages.Why this change is being made
Test suites in agent-driven projects grow past what a reader can review. The rules for writing new tests do not shrink a suite that already exists, and cuts by eye or by test count reached little.
Tested
gh skill publish --dry-run: complete, with warnings for the missinglicensefield and Git remote.pixi run -q hooks: all hooks passed.pixi run -q test: 391 passed.The skill has not been tried on a real suite.