smithery.ai

Write unit tests

Enable an agent to write unit tests

First seen Mar 19, 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

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 660 B
  • docs SUMMARY.md 59 B

History

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

SKILL.md

Write unit tests

Best practices

  • Unit tests should go into tests named for the functions being tested.

- If you have a function Foo, you should have a test function named TestFoo. - Methods with receivers should include the name of the receiver's type. A method like func (f *Foo) Bar() {...} should have a test named TestFooBar.

  • Tests should only test the behavior of the function. Don't exhaustively test

every possible input.

  • Each behavior you test should have a test case. If you have more than two

test cases, use table-driven tests.