Low commit activity in last 3 years
parallel_tests commands for spring
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
 Project Readme

spring-commands-parallel-tests

This gem adds the following commands from parallel_tests to Spring:

  • parallel_test
  • parallel_rspec
  • parallel_cucumber
  • parallel_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: :development

If you're using spring binstubs, you can run the following commands to generate the respective binstubs:

  • bundle exec spring binstub parallel_test
  • bundle exec spring binstub parallel_rspec
  • bundle exec spring binstub parallel_cucumber
  • bundle 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