testing:test-runner

Execute test suites with proper setup and reporting. Use when running tests, checking test status, or debugging test failures.

SKILL.md

GitHub

Test Runner

Execute project test suites with proper configuration.

Quick Commands

# Unit tests
<test-command>              # Run all
<test-coverage-command>     # With coverage
<test-watch-command>        # Watch mode

# E2E tests
<e2e-command>               # Run all
<e2e-smoke-command>         # Smoke tests only

# Specific tests
<test-runner> <path-to-test-file>

Dev Server Management (for E2E)

# Start (background)
nohup <dev-command> > dev.log 2>&1 &

# Verify
curl -s http://localhost:<port> | head -1

# Run E2E
<e2e-command>

# CRITICAL: Cleanup
pkill -f "<dev-process-name>"

Debugging

# Verbose output
<test-runner> --reporter=verbose <test>

# Playwright UI mode
<playwright-runner> <test> --ui

# Headed mode (see browser)
<playwright-runner> <test> --headed

Common Issues

Server won't start:

lsof -i :<port>              # Check port
kill $(lsof -t -i:<port>)    # Free port

Tests hanging:

ps aux | grep <process>      # Check processes
pkill -f <process>           # Kill if needed

Coverage not updating:

rm -rf coverage/             # Clear cache
<test-coverage-command>      # Regenerate