Execute test suites with proper setup and reporting. Use when running tests, checking test status, or debugging test failures.
Execute project test suites with proper configuration.
# 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>
# 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>"
# Verbose output
<test-runner> --reporter=verbose <test>
# Playwright UI mode
<playwright-runner> <test> --ui
# Headed mode (see browser)
<playwright-runner> <test> --headed
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