testing

Automate TDD workflows across Pest, Vitest, and Playwright test layers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies a TDD workflow and test patterns for Laravel, React, and end-to-end testing to improve reliability.

Core Features & Use Cases

  • Red-Green-Refactor loop with Pest tests and Vitest patterns.
  • Component tests, unit tests, and integration tests with clear conventions.
  • Standard test commands and coverage checks.

Quick Start

Write a failing test, then implement minimal code to make it pass, and refactor while keeping tests green.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I set up a test-driven development workflow with Pest and Vitest?

Test-driven development with Pest and Vitest follows the red-green-refactor loop: write a failing test first, implement minimal code to pass it, then refactor while keeping tests green. Pest handles PHP testing and Vitest handles JavaScript/React testing, with explicit commands like `composer test` and `npm run test` to run your test suite.

Can I run unit tests, component tests, and integration tests in a single testing framework?

Yes. Pest, Vitest, and Playwright provide layered testing across PHP and JavaScript environments. Pest and Vitest handle unit and component tests with clear conventions, while Playwright automates end-to-end testing, allowing you to test feature interactions across your entire stack within standardized pipelines.

How do I measure test coverage across Pest, Vitest, and Playwright?

Coverage checks are built into Pest and Vitest test pipelines and can be run as part of standard test commands. Both frameworks generate coverage reports to identify untested code paths, helping you maintain reliability and enforce coverage thresholds in your CI/CD workflow.

What's the best way to manage tests across Laravel, React, and end-to-end layers?

Standardize testing workflows by applying consistent patterns: use Pest for Laravel unit and feature tests, Vitest for React component and unit tests, and Playwright for end-to-end scenarios. This approach codifies TDD practices, cross-framework conventions, and explicit test commands for write-run-verify cycles.

Do I need to learn multiple frameworks to test PHP and JavaScript in one project?

Yes, but the frameworks are purpose-built: Pest specializes in PHP testing with Laravel patterns, Vitest optimizes JavaScript/React testing, and Playwright handles browser automation. Learning each framework's conventions ensures your full stack benefits from dedicated tooling and TDD workflows.