testing-workflow
CommunityTest with confidence, ship with certainty.
Authorfattits30-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill orchestrates a comprehensive testing strategy, simplifying the management of unit, integration, and E2E tests. It ensures native module compatibility and provides detailed coverage reports, eliminating setup errors and guaranteeing code quality.
Core Features & Use Cases
- Multi-Layer Testing: Runs Vitest for fast unit/integration tests and Playwright for robust End-to-End (E2E) tests.
- Native Module Compatibility: Automatically rebuilds
better-sqlite3for the correct Node.js test runtime, preventing common errors. - Coverage Reports: Generates detailed code coverage to track quality metrics and identify untested areas.
- Use Case: Before pushing code, Claude automatically runs all unit, integration, and E2E tests, ensuring native modules are correctly rebuilt for the test environment, and provides a coverage report, guaranteeing code quality and stability.
Quick Start
Run all unit and integration tests
pnpm test
Generate a code coverage report
pnpm test:coverage
Run all End-to-End (E2E) tests with Playwright
pnpm test:e2e
CRITICAL: Rebuild native modules for Node.js runtime before tests
pnpm rebuild:node
Dependency Matrix
Required Modules
vitestplaywrightbetter-sqlite3tsx
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: testing-workflow Download link: https://github.com/fattits30-dev/Justice-Companion/archive/main.zip#testing-workflow Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.