agentleFS
Sign inSign up

testing

timmo001/skills/testing/SKILL.md

Choose tests for their concrete regression value and avoid low-value coverage. Use during implementation, fixes, planning, diagnosis, and code review when choosing verification, adding or changing tests, or considering a missing-test finding.

Skill0 starsChanged 4 days ago
---
name: testing
license: Apache-2.0
description: Choose tests for their concrete regression value and avoid low-value coverage. Use during implementation, fixes, planning, diagnosis, and code review when choosing verification, adding or changing tests, or considering a missing-test finding.
---

# Testing

## Tests Should Earn Their Place

- Add or request tests when they catch a meaningful failure or protect important behaviour that existing checks do not already cover. Ordinary cases can be worthwhile; a test does not need to cover a rare edge case.
- State the specific failure the test would catch and why that matters. An existing test file or helper, a convenient test seam, or the fact that code changed is not enough. Apply the same standard to new files and extra cases in existing files.
- Honour explicit user requests and repository requirements. Do not use TDD, red-green-refactor, or test-first workflows.
- Computations, data processing, utilities, config validation, and strategies are eligible areas, not automatic reasons to add tests. Do not cover every scenario, chase coverage, mirror the implementation, or exhaustively test behaviour that changes often.
- If the value is uncertain, briefly describe the proposed test and what it would catch, then ask the user once. Tests with a clear benefit need no extra approval.

## Rendering And Review

- Do not add rendering tests for views, panels, or components. This includes assertions about text, CSS classes, styles, slots, option defaults, and templates that only display context or helper data.
- Do not request new tests for visual components in review. For a clear visual change without screenshots or videos, suggest adding that evidence instead. Capturing it still requires the applicable browser permission.
- Test meaningful logic behind a UI at its existing boundary rather than building a rendering harness around it.
- A missing test is not a finding merely because code changed. Any test request must explain the meaningful failure left unprotected in the scoped change. Honour stricter repository prohibitions.

## Verification

- Run relevant existing checks and repository-required validation. Prefer the smallest reliable check or direct observation for the changed behaviour.
- Maintain an existing test when an intentional behaviour change makes it stale; that does not authorise extra cases or broader coverage. Do not delete or weaken tests just to obtain a pass.
- Do not introduce test infrastructure, extract helpers, or redesign production code solely to make an optional test possible.
- After checks pass, broaden or repeat them only for new changes, failures, or unresolved concerns. State verification limits plainly.

Discussion

Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.

Posts are public.Sign in to post

No one has posted yet. Be the first.