Test Quality Analysis
Practical review guide that flags test smells such as overmocking, fragile selectors, flaky async code, and weak assertions.
- CCM score
- 50 of 100
- skills.sh installs
- 480
- GitHub stars
- 257
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the main test quality dimensions: correctness, reliability, maintainability, performance, coverage, and isolation
- Includes before-and-after examples for overmocking, fragile tests, flaky tests, poor assertions, and implementation-detail testing
- Sets concrete limits such as 3 to 4 mocks per test and 80% line coverage for business logic, with 100% for auth and payment paths
- Provides code review checklists and coverage commands for Vitest (
bun test --coverage) and pytest-cov (uv run pytest --cov)
Install
$ npx -y skills add secondsky/claude-skills --skill test-quality-analysis -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Test Quality Analysis
Expert knowledge for analyzing and improving test quality - detecting test smells, overmocking, insufficient coverage, and testing anti-patterns.
Core Dimensions
- Correctness: Tests verify the right behavior
- Reliability: Tests are deterministic, not flaky
- Maintainability: Tests are easy to understand
- Performance: Tests run quickly
- Coverage: Tests cover critical code paths
- Isolation: Tests don't depend on external state
Test Smells
Overmocking
Problem: Mocking too many dependencies makes tests fragile.
// ❌ BAD: Overmocked
test('calculate total', () => {
const mockAdd = vi.fn(() => 10)
const mockMultiply = vi.fn(() => 20)
// Testing implementation, not behavior
})
// ✅ GOOD: Mock only external dependencies
test('calculate order total', () => {
const mockPricingAPI = vi.fn(() => ({ tax: 0.1 }))
const total = calculateTotal(order, mockPricingAPI)
expect(total).toBe(38)
})
Detection: More than 3-4 mocks, mocking pure functions, complex mock setup.
Fix: Mock only I/O boundaries (APIs, databases, filesystem).
Fragile Tests
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Testing & QA, Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the test-quality-analysis skill do?
It detects test smells, overmocking, flaky tests and coverage issues in your test suite. It also analyzes test effectiveness, maintainability and reliability when you review tests or work on improving test quality.
How do I install the test-quality-analysis skill?
Run npx -y skills add secondsky/claude-skills --skill test-quality-analysis -y in your project. Once installed, the agent can review your tests for smells such as overmocking and fragile selectors, and suggest fixes.
Where does test-quality-analysis stand in the Testing & QA category?
It sits in the Testing & QA category on Claude Marketplaces, alongside tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. It focuses on judging the quality of existing tests rather than writing new ones.
Which kinds of test problems does this skill flag?
The skill flags overmocking where too many dependencies are mocked, fragile tests that depend on implementation details, and flaky tests with race conditions. It also points out weak assertions and missing coverage of error paths and boundary conditions.
More from secondsky/claude-skills
All 116- Bun Hono Integration476
- Api Reference Documentation475
- Mutation Testing471
- Tanstack Router471
- Internationalization I18n467
- Security Headers Configuration466
- Systematic Debugging466
- Bun Package Manager465
- Interaction Design465
- Seo Optimizer465
- Api Error Handling463
- Sequential Thinking458
- Bun Nextjs452
- Websocket Implementation449
- Mobile App Debugging448
- Root Cause Tracing448
- App Store Deployment447
- Recommendation Engine447
- Seo Keyword Cluster Builder447
- Push Notification Setup446
- Drizzle Orm D1443
- Api Pagination442
- Api Response Optimization442
- Api Filtering Sorting440
Similar to Test Quality Analysis
More Testing & QAtest-quality-inspectorbobmatnyc/claude-mpm-skills387 installsTest quality inspection framework that flags worthless assertions and missing negative cases in test suites.
vitest-testingsecondsky/claude-skills1.3K installsModern Vitest guide for TypeScript and JavaScript tests, covering unit, integration, mocking, and coverage workflows.
mutation-testingsecondsky/claude-skills471 installsMutation testing skill that finds weak tests by injecting code mutants via Stryker (TypeScript) and mutmut (Python).
testing-best-practicesasyrafhussin/agent-skills993 installsPractical TDD and unit/integration testing guidelines with 34 TypeScript rules across seven prioritized categories.
test-anti-patternsdotnet/skills6.1K installsAudits test suites in any language for anti-patterns, producing a severity-ranked report of false-confidence and maintainability issues.
python-testing-patternswshobson/agents41.5K installsComprehensive pytest guide covering fixtures, mocking, parameterization, and test-driven development workflows for Python.