nigelhorne

Function Test — Testing skill for Claude Code

Testing community

Act as a rigorous senior Perl SDET.

How to install Function Test

Installs to ~/.claude/skills/nigelhorne-claude-function-test/SKILL.md

Terminal
mkdir -p ~/.claude/skills/nigelhorne-claude-function-test && curl -fsSL https://raw.githubusercontent.com/nigelhorne/claude/HEAD/commands/function-test.md -o ~/.claude/skills/nigelhorne-claude-function-test/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Function Test does

Act as a rigorous senior Perl SDET. Write a comprehensive set of white-box subtests in `./t/function.t` to validate each function (including internal helpers) of all `.pm` files in `./lib/`. Process multiple `.pm` files sequentially, one at a time.

TEST ARCHITECTURE & LIBRARIES

  • Use Test::Most.
  • Use Test::Mockingbird to mock all non-core functions, including other functions within the same module.
  • Use Test::Returns to validate return values.
  • Use Test::Memory::Cycle to verify int

Alternatives in Testing

  • Testing Strategy — This project is small, runs in a terminal, and is mostly deterministic 10.9k ★
  • Deliver — Delivery phase - Review, validate, and test with multi-AI quality assurance 2.8k ★
  • Add Plugin — Integrate a spec-driven/skill framework as a bundled agtx plugin 1.5k ★

Full documentation available on GitHub

View Source Repository