You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure parallel test execution to speed up CI builds and local
test runs.
## Changes
- Add parallel_tests gem for running tests concurrently
- Configure database.yml to support TEST_ENV_NUMBER for parallel databases
- Update GitHub Actions workflow to run tests across 4 parallel runners
- Configure SimpleCov to merge coverage results from parallel runs
## Local Usage
Run tests in parallel with 4 processes:
```
bundle exec parallel_rspec spec/ -n 4
```
Run with a specific seed:
```
bundle exec parallel_rspec spec/ -n 4 -o '--seed 1234'
```
One-time setup (creates test, test2, test3, test4 databases):
```
bundle exec rake parallel:setup
```
## Performance
Local verification shows 1.84x speedup (162s → 88s) with identical
coverage results (95.19%). Expected similar speedup in CI.
0 commit comments