-
Notifications
You must be signed in to change notification settings - Fork 0
Testing Conventions
The testing-conventions plugin (requires: developer-workflows) ships two primitives that keep test discipline standing and visible throughout the dev loop: a rule that fires on skip/xfail markers and a skill that encodes the three day-to-day testing principles.
| Aspect | Value |
|---|---|
| Plugin slug | testing-conventions |
| Version | 0.1.0 |
| Requires | developer-workflows |
| Primitives |
no-skip-tests rule · testing-conventions skill |
| Hosts | Claude Code · Antigravity |
Fires whenever you add or approve a skip/xfail/xit/pending marker without a compliant comment. The rule requires an inline comment immediately before the marker that states the exact technical blocker (not "TODO", not "flaky") and links a tracking issue or PR.
Covered markers: @pytest.mark.skip · @pytest.mark.xfail · xit( / it.skip( · test.skip( · pending( · // SKIP / # SKIP.
The required override shape:
# SKIP: <one-sentence technical blocker> — see <issue URL or PR>
@pytest.mark.skip
def test_foo():
...
Standing principles the agent applies every time it writes, changes, or reviews code with observable behavior. Three principles, each with concrete examples:
| Principle | What it enforces |
|---|---|
| Tests are sacred | Never delete or skip a test to make a build pass. A failing test is information, not an obstacle — fix the behavior, fix the test, or justify the skip explicitly. |
| Verification first | Write the scenario that can fail before the code that makes it pass. If you can't describe the observable behavior in one sentence before writing the implementation, the requirement is underspecified. |
| 3-layer pyramid | Unit (< 1 ms, isolated), Integration (10 ms–1 s, real collaborators at the boundary), E2E (golden paths only, full stack). Don't collapse them; don't push integration failures down to unit mocks. |
For review-time gap auditing — identifying missing test types across a diff — use the
code-reviewplugin'stesting-strategyskill.testing-conventionsowns the practice;testing-strategyowns the audit.
claude plugin install testing-conventions@cricketsRequires developer-workflows as a base. Both plugins must be enabled for the skill to load.
-
code-review plugin — the
testing-strategyskill (review-time test gap audit) andadversarial-revieweragent. -
Customization Types — what
kind: ruleandkind: skillare. -
Manifest Schema — the
requires:andenhances:contract.
🔧 How-to
- Plugin anatomy
- Repo layout
- Compatibility
- CI gates
- Troubleshooting
- Customization Types
- Manifest Schema
- Per-Host Paths
- Hooks
- Evaluator
- Antigravity Limitations
- Wiki Watch Config
- Style-learning loop
- Modify a plugin
- Add a skill
- Add a plugin
- Named plans
- Coordinator roles (pending)
- Obsidian vault backend (pending)
- GitHub Projects
- Testing Conventions
- Releasing Conventions
- Design Docs