smithery/pevans

Write unit tests

Enable an agent to write unit tests

Installation

$ npx skills add smithery/pevans --skill write-unit-tests

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/pevans.

npx skills add smithery/pevans

Browse all from smithery/pevans

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 recorded snapshot · 0 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.