Project

General

Custom queries

Profile

Actions

Refactor #15751

closed

Replace spork with spring preloader

Added by Dominic Cleal over 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Revision 4b836b62 (diff)

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`.

Actions

Also available in: Atom PDF