Skip to content

SilkFred/spring-commands-parallel-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 95.1%
  • Shell 4.9%