Agent skill

Testing Test Writing

Write minimal, focused tests that cover core user flows and primary workflows without over-testing during development. Use this skill when deciding what to test, writing behavior-focused tests, naming test cases clearly, mocking external dependencies, or keeping tests fast. Apply when completing feature implementation and adding strategic tests, testing critical paths rather than edge cases, or deferring edge case testing to dedicated testing phases.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/testing-test-writing

SKILL.md

When to use this skill:

  • When deciding what tests to write during feature development
  • When identifying core user flows and primary workflows to test
  • When writing behavior-focused tests instead of implementation tests
  • When naming test cases with clear descriptions of what is being tested
  • When mocking databases, APIs, file systems, and external services
  • When keeping unit tests fast (milliseconds) for frequent execution
  • When deferring edge case and error state testing
  • When completing a feature and adding strategic tests at logical completion points
  • When avoiding over-testing non-critical utilities
  • When balancing test coverage with development velocity
  • When ensuring tests describe expected outcomes in their names

Testing Test Writing

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle testing test writing.

Instructions

For details, refer to the information provided in this file: testing test writing

Didn't find tool you were looking for?

Be as detailed as possible for better results