Skip to content

Commit 3992e39

Browse files
committed
CI: Eager Load classes before tests
This is the Rails default. From the docs > Eager loading loads your whole application. When running a single test locally, > this probably isn't necessary. It's a good idea to do in a continuous integration > system, or in some way before deploying your code.
1 parent 2c92b63 commit 3992e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/spree/testing_support/dummy_app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Application < ::Rails::Application
8484
config.log_level = :debug
8585

8686
# Improve test suite performance:
87-
config.eager_load = false
87+
config.eager_load = ENV['CI'].present?
8888
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
8989
config.cache_store = :memory_store
9090

0 commit comments

Comments
 (0)