testing-guidelines

Guides unit, integration, and end-to-end testing with behavior-focused rules and TDD workflows.

Updated Dec 13, 2025
One-click install
npx skills add https://github.com/imehr/vet --skill testing-guidelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-guidelines
Source: https://github.com/imehr/vet/tree/main/.claude/skills/testing-guidelines
Command: npx skills add https://github.com/imehr/vet --skill testing-guidelines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured approach to designing and executing robust tests across the software lifecycle, helping teams move away from flaky, under-tested code and toward a confident, maintainable test strategy.

Core Features & Use Cases

  • Establishes a Testing Pyramid framework (Unit, Integration, End-to-End) and TDD best practices to guide project testing.
  • Provides behavior-focused testing guidance that prioritizes observable outcomes over internal implementation details, along with practical mocking patterns.
  • Includes real-world use cases and actionable steps to migrate a project from ad-hoc tests to a solid, scalable testing strategy.

Quick Start

  • Audit your project to identify gaps against the Testing Pyramid.
  • Add unit tests for pure functions and utilities using Vitest.
  • Create component tests with React Testing Library to cover rendering and user interactions.
  • Introduce integration tests for API interactions and end-to-end tests for critical flows.

Frequently Asked Questions about testing-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a reliable testing workflow using Vitest and TDD?

A reliable testing workflow establishes a Testing Pyramid framework using Vitest for unit, integration, and end-to-end tests, applying TDD best practices. This structure moves projects away from flaky code toward maintainable, behavior-focused test isolation.

How do I write behavior-focused unit tests with practical mocking?

Writing behavior-focused unit tests involves prioritizing observable outcomes over internal implementation details using practical mocking patterns. This ensures test isolation and verifies interactions without coupling tests to specific code structures.

Can I use React Testing Library for component integration testing?

Yes, you can use React Testing Library to create component tests covering rendering and user interactions. It serves as part of a structured testing strategy for integration tests that verify API interactions and critical end-to-end flows.

What is the best way to migrate ad-hoc tests to a scalable testing strategy?

The best way to migrate ad-hoc tests to a scalable testing strategy is to audit your project against the Testing Pyramid framework. Actionable steps include adding unit tests for pure functions, creating component tests, and introducing integration tests for APIs.

Why does my test strategy prioritize observable behavior over internal implementation?

Your test strategy prioritizes observable behavior over internal implementation to improve confidence in code quality and maintainability. This behavior-focused approach ensures tests remain valid and isolated even when internal code structures are refactored.