test-master
Complete management plugin for Vitest 4.0 + Playwright 1.55 + MSW 2.11+ testing infrastructure (2025). This production-ready plugin provides comprehensive test automation, AI-powered test generation, visual regression testing, debugging, mutation testing, test annotation, and infrastructure management for modern JavaScript projects.
🚀 Features
Core Test Management
- Run all tests with intelligent selection based on changed files
- Unit, integration, and E2E test execution with separate commands
- Watch mode for continuous testing during development
- Coverage analysis with detailed reports and gap identification
- Interactive debugging with trace analysis and headed mode
Test File Management
- Auto-scaffolding for unit, integration, and E2E tests with proper boilerplate
- Helper utilities for assertions, DOM manipulation, fixtures, mocks, and state
- Fixture generation for consistent mock data across tests
- Test infrastructure organization following best practices
MSW Integration
- Mock handler generation for API endpoints (GET, POST, PUT, DELETE, PATCH)
- Fixture management for API response data
- MSW debugging to diagnose interception issues
- Stateful mocks for complex testing scenarios
Coverage Analysis
- Comprehensive reports in multiple formats (text, HTML, JSON, LCOV)
- Gap analysis to identify untested code
- Threshold management for per-file and global coverage requirements
- Prioritized suggestions for improving coverage
Test Debugging
- Automatic fix suggestions for common test failures
- Snapshot management with guided updates
- Playwright trace analysis with timeline, screenshots, and network activity
- Headed mode execution for visual debugging
CI/CD Integration
- GitHub Actions workflow generation
- GitLab CI configuration generation
- Parallel execution optimization
- Test artifact management (traces, screenshots, videos)
📦 Installation
Via GitHub Marketplace (Recommended)
# Add the marketplace
/plugin marketplace add claude-plugin-marketplace/claude-plugin-marketplace
# Install the plugin
/plugin install test-master@claude-plugin-marketplace
Local Installation (Mac/Linux)
⚠️ Windows users: Use GitHub marketplace installation method instead.
# Extract to plugins directory
unzip test-master.zip -d ~/.local/share/claude/plugins/
🎯 Technology Stack (2025)
- Vitest 4.0 (Released: October 22, 2025) - Unit, integration, and browser testing
- Browser Mode (Stable) - Production-ready browser testing with Chromium, Firefox, WebKit
- Visual Regression Testing - Screenshot comparison with
toMatchScreenshot() matcher
- Playwright Trace Integration - Generate Playwright traces for browser tests
- Type-Aware Hooks - Better TypeScript support in lifecycle hooks
- Annotation API (3.2+) - Add metadata and attachments to tests
- Line Number Filtering (3.0+) - Run tests by line number from IDE
- Improved Watch Mode - Smarter change detection, faster rebuilds
- Enhanced Reporting - Reduced flicker, clearer output
- Workspace Projects - Multi-project support in single config
- toBeInViewport Matcher - Check element visibility with IntersectionObserver API
- Playwright 1.56 (October 2025) - E2E browser testing
- AI Test Agents - Planner, Generator, and Healer agents for LLM-powered test automation
- testStepInfo.titlePath - Full test hierarchy for better debugging
- VS Code 1.105+ Integration - Seamless agentic experience in VS Code
- Debian 13 Support - Modern CI/CD environment compatibility
- Chromium 140+, Firefox 141, WebKit 26 - Latest browser support
- Flaky Test Detection -
--fail-on-flaky-tests CLI flag
- Enhanced File Downloads - Simplified download handling
- Custom Reporters - Integration with third-party tools
- Role-Based Locators -
getByRole() for accessible testing
- Auto-Waiting - Intelligent wait mechanisms
- MSW (Mock Service Worker) 2.11+ (Latest: 2025) - API mocking following 2025 patterns
- Fetch API Primitives - Full Fetch API support (ReadableStream, ESM-compatible)
- Happy-Path-First - Success scenarios as baseline
- Domain-Based Organization - Structured handler grouping by feature
- Runtime Overrides - Flexible test-specific mocking with
server.use()
- Node.js 18+ Required - Modern runtime support
- Stryker Mutator - Mutation testing for test quality verification
- happy-dom - Fast DOM simulation for Vitest unit tests
- @vitest/coverage-v8 - Code coverage analysis
📖 Commands
Core Test Management