Add parallel_tests support - #86
Open
tdipiazza wants to merge 4 commits into
Open
Conversation
When parallel_tests gem is present in the bundle, the default rake task now runs specs in parallel with per-worker SimpleCov coverage that gets collated at the end. Extracts coverage reporting into JefferiesTube::Coverage.print_report to avoid duplication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
last commit was mine so I don't want to boat, but I think this is good. should we ship it? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
parallel_testsgem is in the bundle, the default rake task automatically runs specs in parallel with collated SimpleCov coverageJefferiesTube::Coverage.print_reportto eliminate duplicationsimplecov_parallel.rbconfig for per-worker coverage collection withoutat_exitreportsUsage
Add
parallel_teststo your Gemfile and updatedatabase.ymlto appendTEST_ENV_NUMBERto the test database name:This creates numbered databases for each parallel worker (e.g.
my_app_test,my_app_test2,my_app_test3, etc.).Then just run
rake— it will automatically use parallel processes.🤖 Generated with Claude Code