Skip to content
Snippets Groups Projects
Commit fc76ff10 authored by Robert Speicher's avatar Robert Speicher
Browse files

Disable Rails logging in CI test environments

parent 48b976e0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,4 +43,9 @@ Rails.application.configure do
config.cache_store = :null_store
 
config.active_job.queue_adapter = :test
if ENV['CI'] && !ENV['RAILS_ENABLE_TEST_LOG']
config.logger = Logger.new(nil)
config.log_level = :fatal
end
end
Loading
Loading
@@ -479,6 +479,11 @@ slowest test files and try to improve them.
run the suite against MySQL for tags, `master`, and any branch that includes
`mysql` in the name.
- On EE, the test suite always runs both PostgreSQL and MySQL.
- Rails logging to `log/test.log` is disabled by default in CI [for
performance reasons][logging]. To override this setting, provide the
`RAILS_ENABLE_TEST_LOG` environment variable.
[logging]: https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
 
## Spinach (feature) tests
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment