Skip to content

Add parallel_tests support - #86

Open
tdipiazza wants to merge 4 commits into
mainfrom
td-parallel-tests
Open

Add parallel_tests support#86
tdipiazza wants to merge 4 commits into
mainfrom
td-parallel-tests

Conversation

@tdipiazza

Copy link
Copy Markdown
Contributor

Summary

  • When parallel_tests gem is in the bundle, the default rake task automatically runs specs in parallel with collated SimpleCov coverage
  • Extracts coverage reporting into JefferiesTube::Coverage.print_report to eliminate duplication
  • Adds simplecov_parallel.rb config for per-worker coverage collection without at_exit reports
  • Suppresses NewRelic configuration log message in test environment

Usage

Add parallel_tests to your Gemfile and update database.yml to append TEST_ENV_NUMBER to the test database name:

test:
  <<: *default
  database: my_app_test<%= ENV['TEST_ENV_NUMBER'] %>

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

tdipiazza and others added 4 commits May 6, 2026 10:45
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>
@Nonsense331

Copy link
Copy Markdown
Contributor

last commit was mine so I don't want to boat, but I think this is good. should we ship it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants