aprs.me/.test-commands
Graham McIntire b9cb8cf1a3
perf: Optimize test suite for maximum speed
Major performance improvements to test execution:
- Increase max_cases from 16 to 48 for better parallelization
- Increase DB pool size for concurrent tests
- Reduce DB timeouts and enable queue optimization
- Disable logging during tests (level: :error)
- Tag slow tests and exclude them by default
- Only seed devices for tests that need them
- Fixed log capture test for packet consumer
- Fixed flaky leader election test with proper timing

Performance improvements:
- Fast tests: 43.2s -> 24.1s (48% faster)
- All tests still pass with --exclude flags removed
- Created .test-commands with helpful aliases

Usage:
- mix test --exclude slow --exclude integration  # Fast development tests
- mix test  # All tests including slow ones

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 17:43:39 -05:00

19 lines
No EOL
592 B
Text

# Fast Test Commands
# Run only fast tests (excludes slow and integration tests)
alias test-fast="mix test --exclude slow --exclude integration"
# Run all tests including slow ones
alias test-all="mix test"
# Run tests with coverage (slower)
alias test-cover="mix test --cover"
# Run tests continuously during development
alias test-watch="mix test.watch --exclude slow --exclude integration"
# Run only failing tests
alias test-failed="mix test --failed"
# Run stale tests (only tests affected by code changes)
alias test-stale="mix test --stale --exclude slow --exclude integration"