File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 43
43
config . cache_store = :null_store
44
44
45
45
config . active_job . queue_adapter = :test
46
+
47
+ if ENV [ 'CI' ] && !ENV [ 'RAILS_ENABLE_TEST_LOG' ]
48
+ config . logger = Logger . new ( nil )
49
+ config . log_level = :fatal
50
+ end
46
51
end
Original file line number Diff line number Diff line change @@ -479,6 +479,11 @@ slowest test files and try to improve them.
479
479
run the suite against MySQL for tags, ` master ` , and any branch that includes
480
480
` mysql ` in the name.
481
481
- On EE, the test suite always runs both PostgreSQL and MySQL.
482
+ - Rails logging to ` log/test.log ` is disabled by default in CI [ for
483
+ performance reasons] [ logging ] . To override this setting, provide the
484
+ ` RAILS_ENABLE_TEST_LOG ` environment variable.
485
+
486
+ [ logging ] : https://jtway.co/speed-up-your-rails-test-suite-by-6-in-1-line-13fedb869ec4
482
487
483
488
## Spinach (feature) tests
484
489
You can’t perform that action at this time.
0 commit comments