Actions
Refactor #15751
closedReplace spork with spring preloader
Description
The test bundler group currently contains spork, which is a pretty inactive project that also does not support Rails 5, so I'd like to replace it.
Rails 4.1 introduced spring by default in new applications to preload Rails for both test and development environments, so it works to replace use of spork for tests (bin/rake test test/unit/domain_test.rb
) and also speeds up console/runner usage etc. https://github.com/rails/spring#readme has more usage info.
Added by Dominic Cleal over 8 years ago
Actions
fixes #15751 - replace spork with spring in development
To make use of it, run bin/rails and bin/rake rather than plain
rails or rake commands, and run `spring status` or `spring stop` to
check and stop current background processes.
Test log removal has moved to the logging framework as the file would
not be recreated after being deleted in the test helper, since the
Rails environment and logger are not reloaded on each `rake test`.