
test-master
Complete Vitest, Playwright, and MSW testing system that scaffolds, debugs, and tunes test suites.
- version
- 1.6.8
- GitHub stars
- 62
What it does
- Adds 25 commands such as
/test-master:run,/test-master:e2e,/test-master:coverage-gaps, and/test-master:debug-mswfor running and diagnosing tests - Covers unit, integration, and E2E scaffolding, MSW handler generation, Playwright trace analysis, and visual regression with
toMatchScreenshot() - Includes the
test-expertagent, which activates on testing, Vitest, Playwright, or MSW requests to guide strategy and failure analysis - Designed for JavaScript projects that want AI-assisted test generation, CI test setup, and parallel execution tuning in one plugin
Complete Vitest 4.0, Playwright 1.55, and MSW 2.x testing system. PROACTIVELY activate for: (1) any testing task (unit/integration/E2E/visual), (2) test scaffolding, (3) AI-powered test generation, (4) debugging and failure analysis, (5) coverage optimization, (6) visual regression, (7) MSW mock management, (8) Vitest/Playwright config, (9) CI test setup, (10) multi-project architecture. Provides: browser-mode patterns, trace debugging, snapshot management, parallel execution tuning.
Add marketplace
/plugin marketplace add JosiahSiegel/claude-plugin-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install test-master@claude-plugin-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourcešØ CRITICAL GUIDELINES
Windows File Path Requirements
MANDATORY: Always Use Backslashes on Windows for File Paths
When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).
Examples:
- ā WRONG:
D:/repos/project/file.tsx - ā
CORRECT:
D:\repos\project\file.tsx
This applies to:
- Edit tool file_path parameter
- Write tool file_path parameter
- All file operations on Windows systems
Documentation Guidelines
NEVER create new documentation files unless explicitly requested by the user.
- Priority: Update existing README.md files rather than creating new documentation
- Repository cleanliness: Keep repository root clean - only README.md unless user requests otherwise
- Style: Documentation should be concise, direct, and professional - avoid AI-generated tone
- User preference: Only create additional .md files when user specifically asks for documentation
Vitest 3.x Features and Best Practices (2025)
Overview
Vitest 3.0 was released in January 2025 with major improvements to reporting, browser testing, watch mode, and developer experience. This skill provides comprehensive knowledge of Vitest 3.x features and modern testing patterns.
Major Features in Vitest 3.0+
1. Annotation API (Vitest 3.2+)
The annotation API allows you to add custom metadata, messages, and attachments to any test, visible in UI, HTML, JUnit, TAP, and GitHub Actions reporters.
Usage:
import { test, expect } from 'vitest';
test('user authentication', async ({ task }) => {
// Add custom annotation
task.meta.annotation = {
message: 'Testing OAuth2 flow with external provider',
attachments: [
{ name: 'config', content: JSON.stringify(oauthConfig) }
]
};
const result = await authenticateUser(credentials);
expect(result.token).toBeDefined();
});
Use Cases:
- Document complex test scenarios
- Attach debug information
- Link to external resources (tickets, docs)
- Add performance metrics
- Track test metadata for reporting
2. Line Number Filtering
Run specific tests by their line number in the file, enabling precise test execution from IDEs.
CLI Usage:
# Run test at specific line
vitest run tests/user.test.js:42
# Run multiple tests by line
vitest run tests/user.test.js:42 tests/user.test.js:67
# Works with ranges
vitest run tests/user.test.js:42-67
IDE Integration:
- VS Code: Click line number gutter
- JetBrains IDEs: Run from context menu
- Enables "run test at cursor" functionality
3. Enhanced Watch Mode
Smarter and more responsive watch mode with improved change detection.
Features:
- Detects changes more accurately
- Only re-runs affected tests
- Faster rebuild times
- Better file watching on Windows
- Reduced false positives
Configuration:
export default defineConfig({
test: {
watch: true,
watchExclude: ['**/node_modules/**', '**/dist/**'],
// New in 3.0: More intelligent caching
cache: {
dir: '.vitest/cache'
}
}
});
4. Improved Test Reporting
Complete overhaul of test run reporting with reduced flicker and clearer output.
Reporter API Changes:
// Custom reporter with new lifecycle
export default class CustomReporter {
onInit(ctx) {
// Called once at start
}
onTestStart(test) {
// More reliable test start hook
}
onTestComplete(test) {
// Includes full test metadata
}
onFinished(files, errors) {
// Final results with all context
}
}
Benefits:
- Less terminal flicker during test runs
- Clearer test status indicators
- Better error formatting
- Improved progress tracking
5. Workspace Configuration Simplification
No need for separate workspace files - define projects directly in config.
Old Way (Vitest 2.x):
// vitest.workspace.js
export default ['packages/*'];
New Way (Vitest 3.0):
// vitest.config.js
export default defineConfig({
test: {
workspace: [
{
test: {
name: 'unit',
include: ['tests/unit/**/*.test.js']
}
},
{
test: {
name: 'integration',
include: ['tests/integration/**/*.test.js']
}
}
]
}
});
6. Enhanced Browser Testing
Improved browser mode with better performance and caching.
Multiple Browser Instances:
export default defineConfig({
test: {
browser: {
enabled: true,
instances: [
{ browser: 'chromium', name: 'chrome' },
{ browser: 'firefox', name: 'ff' },
{ browser: 'webkit', name: 'safari' }
]
}
}
});
Benefits:
- Single Vite server for all browsers
- Cached file processing
- Parallel browser execution
- Reduced startup time
7. Improved Coverage
Automatic exclusion of test files from coverage reports.
Automatic Exclusions (Vitest 3.0):
export default defineConfig({
test: {
coverage: {
provider: 'v8',
// Test files automatically excluded
// No need to manually exclude *.test.js
exclude: [
// Only need to specify custom exclusions
'**/node_modules/**',
'**/dist/**'
]
}
}
});
8. Enhanced Mocking
New spy reuse and powerful matchers.
Spy Reuse:
const spy = vi.fn();
// Vitest 3.0: Reuse spy on already mocked method
vi.spyOn(obj, 'method').mockImplementation(spy);
vi.spyOn(obj, 'method'); // Reuses existing spy
New Matchers:
// toHaveBeenCalledExactlyOnceWith
expect(mockFn).toHaveBeenCalledExactlyOnceWith(arg1, arg2);
// Ensures called exactly once with exact arguments
// Fails if called 0 times, 2+ times, or with different args
9. Project Exclusion Patterns
Exclude specific projects using negative patterns.
CLI Usage:
# Run all except integration tests
vitest run --project=!integration
# Run all except multiple projects
vitest run --project=!integration --project=!e2e
# Combine inclusion and exclusion
vitest run --project=unit --project=!slow
10. UI Improvements
Significantly enhanced test UI with better debugging and navigation.
New UI Features:
- Run individual tests from UI
- Automatic scroll to failed tests
- Toggleable node_modules visibility
- Improved filtering and search
- Better test management controls
- Module graph visualization
Launch UI:
vitest --ui
Best Practices for Vitest 3.x
1. Use Annotation API for Complex Tests
test('complex payment flow', async ({ task }) => {
task.meta.annotation = {
message: 'Tests Stripe webhook integration',
attachments: [
{ name: 'webhook-payload', content: JSON.stringify(payload) },
{ name: 'ticket', content: 'https://jira.company.com/TICKET-123' }
]
};
// Test implementation
});
2. Leverage Line Filtering in Development
# Quick iteration on single test
vitest run src/auth.test.js:145 --watch
3. Organize with Workspace Projects
export default defineConfig({
test: {
workspace: [
{
test: {
name: 'unit-fast',
include: ['tests/unit/**/*.test.js'],
environment: 'node'
}
},
{
test: {
name: 'unit-dom',
include: ['tests/unit/**/*.dom.test.js'],
environment: 'happy-dom'
}
},
{
test: {
name: 'integration',
include: ['tests/integration/**/*.test.js'],
setupFiles: ['tests/setup.js']
}
}
]
}
});
4. Use toHaveBeenCalledExactlyOnceWith for Strict Testing
test('should call API exactly once with correct params', () => {
const apiSpy = vi.spyOn(api, 'fetchUser');
renderComponent({ userId: 123 });
// Strict assertion - fails if called 0, 2+ times or wrong args
expect(apiSpy).toHaveBeenCalledExactlyOnceWith(123);
});
5. Optimize Watch Mode for Large Projects
export default defineConfig({
test: {
watch: true,
watchExclude: [
'**/node_modules/**',
'**/dist/**',
'**/.git/**',
'**/coverage/**'
],
// Run only related tests
changed: true,
// Faster reruns
isolate: false // Use with caution
}
});
6. Custom Reporters for CI/CD
// reporters/junit-plus.js
export default class JUnitPlusReporter {
onFinished(files, errors) {
const results = files.map(file => ({
name: file.name,
tests: file.tasks.length,
failures: file.tasks.filter(t => t.result?.state === 'fail').length,
// Add annotations from tests
annotations: file.tasks
.map(t => t.meta?.annotation)
.filter(Boolean)
}));
// Export to CI system
exportToCI(results);
}
}
// vitest.config.js
export default defineConfig({
test: {
reporters: ['default', './reporters/junit-plus.js']
}
});
Migration from Vitest 2.x to 3.x
Breaking Changes
-
Workspace Configuration:
- Move workspace projects into main config
- Update project references
-
Reporter API:
- Update custom reporters to new lifecycle
- Check reporter method signatures
-
Browser Mode:
- Update provider syntax if using browser mode
- Review browser configuration
Migration Steps
# Update Vitest
npm install -D vitest@^3.0.0
# Update related packages
npm install -D @vitest/ui@^3.0.0
npm install -D @vitest/coverage-v8@^3.0.0
# Run tests to check for issues
npm test
# Update configs based on deprecation warnings
Performance Optimization Tips
1. Use Workspace Projects for Isolation
// Separate fast unit tests from slower integration tests
workspace: [
{
test: {
name: 'unit',
include: ['tests/unit/**'],
environment: 'node' // Fastest
}
},
{
test: {
name: 'integration',
include: ['tests/integration/**'],
environment: 'happy-dom',
setupFiles: ['tests/setup.js']
}
}
]
2. Parallelize Test Execution
# Run projects in parallel
vitest run --project=unit --project=integration
# Exclude slow tests during development
vitest run --project=!e2e --project=!slow
3. Use Line Filtering for TDD
# Rapid iteration on single test
vitest run src/feature.test.js:42 --watch
4. Optimize Browser Testing
export default defineConfig({
test: {
browser: {
enabled: true,
// Reuse context for speed (less isolation)
isolate: false,
// Single instance for development
instances: [{ browser: 'chromium' }]
}
}
});
Common Patterns
Test Annotation for Debugging
test('payment processing', async ({ task }) => {
const startTime = Date.now();
try {
const result = await processPayment(data);
task.meta.annotation = {
message: `Completed in ${Date.now() - startTime}ms`,
attachments: [
{ name: 'result', content: JSON.stringify(result) }
]
};
expect(result.success).toBe(true);
} catch (error) {
task.meta.annotation = {
message: 'Payment processing failed',
attachments: [
{ name: 'error', content: error.message },
{ name: 'payload', content: JSON.stringify(data) }
]
};
throw error;
}
});
Multi-Project Testing Strategy
export default defineConfig({
test: {
workspace: [
// Fast feedback loop
{
test: {
name: 'unit-critical',
include: ['tests/unit/critical/**'],
environment: 'node'
}
},
// Standard tests
{
test: {
name: 'unit-standard',
include: ['tests/unit/**'],
exclude: ['tests/unit/critical/**'],
environment: 'happy-dom'
}
},
// Slow integration tests
{
test: {
name: 'integration',
include: ['tests/integration/**'],
testTimeout: 30000
}
}
]
}
});
Resources
Readme
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-testsCLI 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
| Command | Description |
|---|---|
/test-master:run | Run all tests with intelligent selection |
/test-master:unit | Run Vitest unit tests only |
/test-master:integration | Run Vitest integration tests |
/test-master:e2e | Run Playwright E2E tests |
/test-master:watch | Start Vitest watch mode |
/test-master:coverage | Generate coverage reports |
/test-master:debug | Debug failing tests interactively |
/test-master:annotate | Add metadata/attachments to tests (Vitest 3.2+) |
/test-master:mutation-test | Run mutation testing for quality verification |
/test-master:ai-generate | Generate tests using Playwright AI agents (Playwright 1.55+) |
Test File Management
| Command | Description |
|---|---|
/test-master:create-unit <module> | Scaffold unit test with boilerplate |
/test-master:create-integration <feature> | Scaffold integration test |
/test-master:create-e2e <workflow> | Scaffold Playwright E2E test |
/test-master:create-helper <type> | Create test helper utility |
/test-master:create-fixture | Create mock data fixture |
Configuration Management
| Command | Description |
|---|---|
/test-master:init | Initialize complete test infrastructure |
/test-master:configure | Interactive configuration wizard |
/test-master:validate-config | Validate all test configurations |
MSW Integration
| Command | Description |
|---|---|
/test-master:create-mock <api-name> | Generate MSW handler for endpoint |
/test-master:update-fixtures | Update mock response data |
/test-master:debug-msw | Debug MSW request handling |
Coverage Analysis
| Command | Description |
|---|---|
/test-master:coverage-report | Generate and display coverage |
/test-master:coverage-gaps | Find untested code |
/test-master:set-thresholds | Update coverage thresholds |
Test Debugging
| Command | Description |
|---|---|
/test-master:fix-failing | Analyze and fix failing tests |
/test-master:update-snapshots | Update Vitest snapshots |
/test-master:trace | Analyze Playwright traces |
/test-master:headed | Run E2E tests in visible browser |
CI/CD Integration
| Command | Description |
|---|---|
/test-master:ci-config | Generate CI/CD test workflows |
/test-master:parallel | Configure parallel execution |
/test-master:artifacts | Manage test artifacts |
š¤ Specialized Agent
The plugin includes the test-expert agent that provides:
- Comprehensive test strategy and architecture
- Advanced debugging techniques
- Testing best practices and patterns
- Mock data architecture guidance
- E2E test patterns and selectors
- Coverage optimization strategies
- Production-ready test infrastructure design
The agent proactively activates when you:
- Mention testing, Vitest, Playwright, or MSW
- Ask about test creation or debugging
- Need test infrastructure guidance
- Have failing tests or coverage issues
š Expected Test Structure
The plugin works best with this recommended structure:
tests/
āāā unit/ # Pure function/module tests
ā āāā *.test.js
āāā integration/ # Multi-module interaction tests
ā āāā *.test.js
āāā e2e/ # Playwright browser tests
ā āāā *.spec.js
āāā helpers/ # Shared test utilities
ā āāā assertions.js # Custom assertions
ā āāā dom.js # DOM setup/teardown
ā āāā fixtures.js # Test data factories
ā āāā mocks.js # Mock creators
ā āāā state.js # State management
āāā fixtures/ # Mock data files
ā āāā mock-data.json
ā āāā api-responses.json
āāā mocks/ # MSW setup
ā āāā handlers.js # Request handlers
ā āāā server.js # MSW server
āāā setup.js # Global setup (MSW + DOM)
āāā setup-msw-only.js # MSW-only setup
āāā vitest-global-setup.js # Global hooks
āāā README.md # Testing documentation
š Quick Start
1. Initialize Test Infrastructure
/test-master:init
This sets up:
- Directory structure
- Configuration files (vitest.config.js, playwright.config.js)
- MSW mock server
- Sample tests
- NPM scripts
2. Create Your First Test
# Unit test
/test-master:create-unit myFunction
# Integration test
/test-master:create-integration userWorkflow
# E2E test
/test-master:create-e2e loginFlow
3. Run Tests
# All tests
/test-master:run
# Specific type
/test-master:unit
/test-master:e2e
# With coverage
/test-master:coverage
4. Debug Failures
# Interactive debugging
/test-master:debug
# Visual debugging (E2E)
/test-master:headed
# Trace analysis
/test-master:trace
š” Usage Examples
Create and Mock an API Endpoint
# 1. Create MSW handler
/test-master:create-mock /api/users
# 2. Create integration test
/test-master:create-integration userApi
# 3. Run tests
/test-master:integration
Set Up CI/CD
# Generate GitHub Actions workflow
/test-master:ci-config
# Configure parallel execution
/test-master:parallel
# Validate everything works
/test-master:run
Improve Coverage
# Generate coverage report
/test-master:coverage
# Find gaps
/test-master:coverage-gaps
# Set new thresholds
/test-master:set-thresholds
šÆ Best Practices Supported (2025)
Vitest 3.x Annotation API
test('payment flow', async ({ task }) => {
task.meta.annotation = {
message: 'Tests Stripe integration',
attachments: [
{ name: 'ticket', content: 'JIRA-123' },
{ name: 'config', content: JSON.stringify(config) }
]
};
// Test implementation
});
Line Number Filtering
# Run specific test by line number
vitest run src/auth.test.js:42
# Works from IDE - click line number in gutter
Mutation Testing
# Verify test quality
npm run test:mutation
# Measure how many code mutations tests catch
AI-Powered Test Generation (Playwright 1.56+)
# Use Playwright Test Agents for LLM-powered test creation
/test-master:ai-generate
# Three specialized agents available:
# - Planner: Explore app and create comprehensive test plan
# - Generator: Convert plan to runnable Playwright code with working selectors
# - Healer: Watch for broken tests and fix them automatically
# Setup (requires VS Code 1.105+)
npx playwright init-agents --loop=vscode|claude|opencode
Key Benefits:
- Generates test cases you might not think of (security, accessibility, performance)
- Creates working code with real selectors, not brittle hardcoded ones
- Self-healing tests that automatically fix when they break
- Analyzes console logs, network, and page snapshots to identify root causes
Playwright Role-Based Locators (2025 Best Practice)
// Prioritize role-based selectors (mirrors user/accessibility view)
await page.getByRole('button', { name: 'Submit' }).click();
await page.getByRole('textbox', { name: 'Email' }).fill('[email protected]');
await page.getByRole('heading', { name: 'Welcome' }).isVisible();
MSW 2.x Happy-Path-First Pattern (2025)
// handlers.js - SUCCESS scenarios as baseline
export const userHandlers = [
http.get('/api/users', () => HttpResponse.json({ users: [...] }))
];
// Combine by domain
export const handlers = [...userHandlers, ...productHandlers];
// Override in test for errors
test('handles error', () => {
server.use(
http.get('/api/users', () => HttpResponse.json({ error }, { status: 500 }))
);
});
Coverage with Per-File Thresholds
coverage: {
thresholds: {
lines: 80,
'src/critical/**/*.js': { lines: 95, functions: 100 }
}
}
š§ Configuration
The plugin automatically handles configuration for:
- vitest.config.js - Test runner, coverage, environments
- playwright.config.js - Browsers, devices, artifacts
- tests/setup.js - Global test setup with MSW
- tests/mocks/server.js - MSW server instance
- tests/mocks/handlers.js - HTTP request handlers
Use /test-master:configure for interactive configuration wizard.
š Coverage Integration
Works seamlessly with:
- Codecov - Automatic upload via CI
- Coveralls - LCOV report generation
- SonarQube - Quality gate integration
- GitHub Actions - Coverage status checks
š Debugging Support
Vitest Debugging
- Verbose output with stack traces
- Node.js debugger integration
- VS Code debugging support
- Watch mode for rapid iteration
Playwright Debugging
- Headed mode (visible browser)
- Trace viewer with timeline
- Screenshot on failure
- Video recording
- Inspector with step-through
MSW Debugging
- Request interception logging
- Handler matching diagnostics
- Response validation
- Network activity tracking
š Cross-Platform Support
- Windows - Full support (use GitHub marketplace installation)
- Command Prompt - Full support
- PowerShell - Full support
- Git Bash/MINGW - Full support with path conversion awareness
- macOS - Full support
- Linux - Full support
- CI environments - Optimized configurations for GitHub Actions, GitLab CI
Windows and Git Bash Best Practices
When running tests on Windows, especially in Git Bash/MINGW environments:
ā Recommended Execution (All Shells):
# Always use npm scripts - handles path conversion automatically
npm test
npm run test:unit
npm run test:e2e
npm run test:coverage
ā Path Configuration Best Practices:
// vitest.config.js - Use relative paths
export default defineConfig({
test: {
include: ['tests/unit/**/*.test.js'], // ā
Good
setupFiles: ['./tests/setup.js'], // ā
Good
// Avoid: '/c/project/tests/**/*.test.js' // ā Bad in Git Bash
}
});
Common Git Bash Issues and Solutions:
Issue: "No such file or directory" errors
# Solution: Use npm scripts (recommended)
npm test
# Or disable path conversion
MSYS_NO_PATHCONV=1 vitest run
Issue: Test files not found
- Use relative paths in configuration
- Avoid absolute paths starting with /c/ or C:\
- Use forward slashes in glob patterns
Issue: Playwright browser launch failures
# Clear interfering environment variables
unset DISPLAY
npm run test:e2e
Shell Detection (if needed):
// Detect Git Bash environment
function isGitBash() {
return !!(process.env.MSYSTEM); // MINGW64, MINGW32, MSYS
}
For comprehensive Windows/Git Bash testing guidance, see the included windows-git-bash-testing.md skill file.
š Documentation
Each command includes comprehensive inline documentation:
# View command help
/help test-master:create-unit
The test-expert agent provides contextual guidance and best practices automatically.
š¤ Contributing
This plugin follows Claude Code plugin best practices:
- Convention over configuration
- Comprehensive error handling
- Cross-platform compatibility
- Production-ready defaults
- Extensive documentation
š Changelog
Version 1.6.0 (2025)
New Features:
- Added comprehensive Windows/Git Bash compatibility support
- New skill:
windows-git-bash-testing.md- Complete guide for cross-platform testing - Shell detection methods for Git Bash/MINGW environments
- Path conversion helpers and troubleshooting guidance
- Updated to Vitest 4.0 (stable browser mode released October 22, 2025)
- Updated to Playwright 1.56 (AI Test Agents - Planner/Generator/Healer)
- Visual regression testing with
toMatchScreenshot()matcher - Playwright Trace integration for Vitest browser mode
- New
toBeInViewport()matcher for visibility testing
Enhancements:
- Enhanced agent with Windows/Git Bash awareness
- Updated all commands with cross-platform execution guidance
- Added npm scripts recommendations for reliable test execution
- Improved path configuration best practices
- Added shell-specific troubleshooting sections
- Updated technology stack with 2025 release dates
- Enhanced AI Test Agents documentation with setup instructions
Documentation:
- Comprehensive Windows/Git Bash compatibility guide
- Path conversion issue resolution
- Shell detection patterns
- Cross-platform best practices
- Updated Vitest 4.0 browser mode syntax
- Updated Playwright 1.56 AI agents information
Bug Fixes:
- Corrected Vitest 4.0 browser mode provider syntax
- Updated package versions to October 2025 releases
Version 1.5.0 (Previous)
- Initial comprehensive testing system
- Vitest 3.x support
- Playwright 1.50+ support
- MSW 2.x integration
š License
MIT
š Links
- Plugin Repository: claude-plugin-marketplace
- Vitest Docs: https://vitest.dev/
- Playwright Docs: https://playwright.dev/
- MSW Docs: https://mswjs.io/
š¬ Support
For issues, questions, or contributions:
- Use the test-expert agent for testing guidance
- Check command documentation with
/help - Report issues via GitHub
Made with ā¤ļø for modern JavaScript testing
Ensure production-ready testing infrastructure with Vitest + Playwright + MSW.
Details
- Marketplace
- JosiahSiegel/claude-plugin-marketplace
- Source
- plugins/test-master
- Author
- Josiah Siegel
- Category
- Community
- Keywords
- testing, vitest, playwright, e2e, msw, mock, coverage, debug, integration, unit
- Listed since
- Apr 7, 2026
More from JosiahSiegel/claude-plugin-marketplace
All 43- tsql-masterv2.0.10
- tui-masterv1.1.0
- unity-masterv1.0.4
- viral-video-masterv2.0.4
- windows-path-masterv1.0.7
- adf-masterv4.3.4
- ado-masterv1.5.9
- azure-masterv1.3.4
- azure-to-docker-masterv1.1.9
- bash-masterv2.0.7
- clerk-auth-masterv1.0.2
- cloudflare-masterv1.1.5
- context-masterv2.2.5
- doc-masterv1.6.1
- docker-masterv1.5.8
- dotnet-microservices-masterv1.0.9
- fal-ai-masterv2.0.5
- ffmpeg-corev1.0.1
- ffmpeg-effectsv1.0.1
- ffmpeg-masterv4.0.0
- ffmpeg-platformsv1.0.0
- ffmpeg-pythonv1.0.1
- ffmpeg-social-videov1.0.1
- git-masterv1.5.6
Similar to test-master
More Testing & QA
testingPlugingreyhaven-ai/claude-code-config31 starsComprehensive testing automation with Playwright visual regression, Chrome E2E testing, and frontend debugging tools
pwPluginalirezarezvani/claude-skills30.3K starsProduction-grade Playwright testing toolkit. 9 skills, 3 agents, 55 templates, plus optional (manually enabled) TestRail/BrowserStack integrations. Generate tes
playwrightPluginTheBushidoCollective/han201 starsAdvanced Playwright skills for end-to-end testing, test architecture, and test automation best practices.
testing-suitePlugindavila7/claude-code-templates24.2K starsComprehensive testing toolkit with E2E, unit, integration, and visual testing automation
vitestPluginTheBushidoCollective/han201 starsComprehensive Vitest testing framework skills for modern Vite-powered JavaScript and TypeScript projects.
playwright-e2e-testingSkillbobmatnyc/claude-mpm-skills2.7K installsModern end-to-end testing with Playwright for cross-browser automation, auto-waiting, and a built-in test runner.