testing-test-writing

pdovhomilja's avatarfrom pdovhomilja

Write minimal, strategic tests focused on core user flows and critical paths during feature development, deferring comprehensive edge case testing. Use this skill when writing unit tests, integration tests, or end-to-end tests, creating test files (*.test.ts, *.spec.js, __tests__/*), testing critical user workflows, focusing on behavior rather than implementation details, using descriptive test names, mocking external dependencies (databases, APIs, file systems), ensuring tests run quickly, testing business-critical functionality, or determining which tests to write during development versus dedicated testing phases. Apply this skill when completing features at logical milestones, writing tests for primary user flows, or balancing feature development speed with adequate test coverage.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 25, 2025

When & Why to Use This Skill

This Claude skill streamlines the software development lifecycle by generating strategic, high-impact automated tests. It focuses on core user flows and critical business logic across unit, integration, and end-to-end testing frameworks, ensuring robust code quality and reliable deployments without sacrificing development velocity.

Use Cases

  • Feature Development: Writing minimal, strategic unit tests for new business logic to ensure core functionality works as intended before moving to the next milestone.
  • Critical Path Validation: Creating end-to-end tests that focus on essential user journeys and business-critical workflows to prevent regressions in production.
  • Test Environment Optimization: Implementing mocks for external dependencies like databases and APIs to ensure test suites run quickly and remain isolated.
  • Refactoring Support: Developing behavior-oriented tests that focus on outcomes rather than implementation details, allowing for safer code internal changes.
  • Continuous Integration: Setting up descriptive and fast-running test files (*.test.ts, *.spec.js) that provide immediate feedback during the CI/CD process.
nameTesting Test Writing
descriptionWrite minimal, strategic tests focused on core user flows and critical paths during feature development, deferring comprehensive edge case testing. Use this skill when writing unit tests, integration tests, or end-to-end tests, creating test files (*.test.ts, *.spec.js, __tests__/*), testing critical user workflows, focusing on behavior rather than implementation details, using descriptive test names, mocking external dependencies (databases, APIs, file systems), ensuring tests run quickly, testing business-critical functionality, or determining which tests to write during development versus dedicated testing phases. Apply this skill when completing features at logical milestones, writing tests for primary user flows, or balancing feature development speed with adequate test coverage.

Testing Test Writing

When to use this skill

  • When writing test files (e.g., *.test.ts, *.spec.js, *.test.jsx, __tests__/*)
  • When creating unit tests, integration tests, or end-to-end tests
  • When testing core user flows and critical business paths
  • When testing behavior rather than implementation details
  • When using descriptive test names that explain what's being tested
  • When mocking external dependencies (databases, APIs, file systems)
  • When ensuring tests run quickly (milliseconds for unit tests)
  • When determining which tests to write during feature development
  • When focusing on business-critical functionality first
  • When reaching logical completion points in feature development
  • When deferring edge case and validation testing to dedicated phases
  • When balancing test coverage with development velocity

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