smithery.ai

what-to-test

Use when writing tests, improving coverage, or deciding what to test in this CLI

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,137 B
  • docs SUMMARY.md 100 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

What to Test

Philosophy

Test user-facing behavior. If a user would notice it's broken, it needs a test.

All CLI commands must be tested - including commands marked "internal". Internal commands are still user-facing (Matt uses them daily).

What Makes a Good Test

  • Tests behavior users depend on
  • Validates real workflows, not implementation details
  • Catches regressions before users do

Do NOT write tests just to increase coverage numbers. Use coverage as a guide to find untested user-facing behavior.

What NOT to Test

Use / v8 ignore start / for:

  • Integration boundaries (actual git calls, shell execution, filesystem)
  • Service layers that get mocked in tests
  • Entry points and DI wiring
  • Boilerplate, unreachable error branches

Testing Pattern

  1. Export a runX() function from command files for testability
  2. Mock external services (GitService, PromptService)
  3. Test error paths users will actually hit
  4. Use v8 ignore for CLI formatting/presentation code