Skip to content

Commit

Permalink
CI: Eager Load classes before tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tvdeyen committed Dec 5, 2024
1 parent ffd2299 commit 0a7dd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/spree/testing_support/dummy_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Application < ::Rails::Application
config.log_level = :debug

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

Expand Down

0 comments on commit 0a7dd4b

Please sign in to comment.