Skip to content

Commit 2c53bf4

Browse files
author
Jean-Michel Garnier
committed
speed up tests suite by 8 seconds by increasing log level
1 parent d6912c9 commit 2c53bf4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

features/support/env.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@
102102
After do
103103
Warden.test_reset!
104104
end
105+
106+
# improve the performance of the specs suite by not logging anything
107+
# see http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/
108+
Rails.logger.level = 4

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,7 @@ module MiniTest; class Assertion < Exception; end; end
160160
end
161161
end
162162
end
163+
164+
# improve the performance of the specs suite by not logging anything
165+
# see http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/
166+
Rails.logger.level = 4

0 commit comments

Comments
 (0)