spring-commands-parallel-tests
This gem adds the following commands from parallel_tests to Spring:
parallel_testparallel_rspecparallel_cucumberparallel_spinach
By including spring-commands-parallel-tests in your Gemfile, the gem will automatically patch Spring to reload the database configuration. This allows you to use <%= ENV['TEST_ENV_NUMBER'] %> in database.yml. It also force-enables Spring, since parallel_tests disables Spring by default. (However, you can still disable Spring by setting DISABLE_SPRING=1.)
See these GitHub issues and PRs for more information about using Spring with parallel_tests:
Usage
Add to your Gemfile:
gem 'spring-commands-parallel-tests', group: :developmentIf you're using spring binstubs, you can run the following commands to generate the respective binstubs:
bundle exec spring binstub parallel_testbundle exec spring binstub parallel_rspecbundle exec spring binstub parallel_cucumberbundle exec spring binstub parallel_spinach
Then run spring stop to pick up the changes.
Credits
This gem is a fork of the spring-commands-rspec gem by @jonleighton.
License
MIT