testing

Generate unit, integration, and component tests with Vitest and React Testing Library.

3|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/human-centric-engineering/sunrise --skill testing-human-centric-engineering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/human-centric-engineering/sunrise/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/human-centric-engineering/sunrise --skill testing-human-centric-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill ensures code quality and reliability by implementing comprehensive testing strategies, from unit tests to integration tests, reducing bugs and improving maintainability.

Core Features & Use Cases

  • Automated Test Generation: Writes unit, integration, and component tests using Vitest and React Testing Library.
  • Hybrid Autonomy: Handles simple tests automatically, consults users for complex decisions.
  • Use Case: When asked to "add tests for the new API endpoint," this Skill will analyze the code, determine the best testing approach (unit vs. integration), generate the test file structure, and write the tests, ensuring production-parity coverage.

Quick Start

Use the testing skill to add comprehensive tests for the new user authentication module.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I automate test generation for unit and integration tests using Vitest?

Automate test generation by analyzing code complexity to determine the best testing approach, then structuring and writing tests using Vitest. A hybrid autonomy model manages simple tests automatically while consulting users for complex testing decisions.

What is the difference between unit and integration tests in test automation?

Unit tests isolate and verify individual functions, whereas integration tests validate interactions across multiple modules. This testing approach uses a structured 5-phase workflow to ensure appropriate production-parity test coverage based on code complexity.

Can I use React Testing Library to add tests for new API endpoints?

Yes, React Testing Library supports adding tests for new API endpoints by generating component tests. The testing workflow analyzes the endpoint code and writes tests ensuring production-parity coverage for user authentication modules.

Does Vitest support a hybrid autonomy model for test creation?

Vitest supports a hybrid autonomy model that handles simple tests automatically while consulting users for complex decisions. This manages test creation based on code complexity, ensuring high test coverage and quality through a structured 5-phase workflow.

What's the best way to structure component tests for a React authentication module?

Structure component tests using a 5-phase workflow that analyzes code, determines the testing approach, generates the file structure, and writes tests using React Testing Library. This ensures production-parity coverage and maintainability for the authentication module.

When should I not use automated test generation for my codebase?

Avoid automated test generation for highly complex code paths requiring nuanced testing decisions. The hybrid autonomy model consults users for complex decisions instead of handling them automatically, ensuring appropriate test quality.