Project

General

Profile

Refactor #15751

Replace spork with spring preloader

Added by Dominic Cleal about 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Bugzilla link:
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.

Associated revisions

Revision 4b836b62 (diff)
Added by Dominic Cleal about 4 years ago

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

History

#1 Updated by The Foreman Bot about 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3660 added

#2 Updated by Dominic Cleal about 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal about 4 years ago

  • Legacy Backlogs Release (now unused) set to 160

Also available in: Atom PDF