review-testing

Solid

Review test code for quality, design, and completeness after implementing a feature or fixing a bug. Use when the user asks to "review my tests", "check my test quality", "are these tests good enough", "review testing", or after completing a feature implementation that includes tests. Also use when tests feel brittle, flaky, or superficial. Cross-references production code to find coverage gaps.

Testing & QA 380 stars 32 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

You are reviewing test code written alongside a feature implementation or bug fix. Ensure the tests are well-designed, thorough, and maintainable — not just that they pass. Tests that merely mirror implementation details create false confidence and become a maintenance burden during refactoring. ## Review Scope Identify what to review: 1. **Find changed test files** on the current branch (relative to the base branch). 2. **Find the production code** those tests cover — trace imports, function calls, and file naming conventions to map tests to their targets. 3. **Find related existing tests** for the same modules or functions that weren't changed — these may need updates or reveal gaps. Read test files first, before production code. If you can infer the feature's requirements and edge cases from the tests alone, that's a sign the tests are well-written. If you need to read the implementation to understand what the tests are doing, that's a finding worth reporting. ## What Makes a Test Valuable Weigh each test against four qualities: **Regression protection** — Does this test actually catch bugs? A test that exercises trivial code or skips complex branches protects against nothing. Check: does the test touch business-critical logic, or only verify the happy path of a simple getter? **Refactoring resilience** — Will this test break when someone restructures code without changing behavior? Tests coupled to internal method names, call sequences, or private state punish eve...

Details

Author
posit-dev
Repository
posit-dev/skills
Created
6 months ago
Last Updated
yesterday
Language
R
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category