gregbell/active_admin — pull request #1397 by 21croissants (2012-06-13 14:59:33+00:00)
Title: speed up tests suite by 8 seconds by increasing log level

Increasing the log level is a low hanging fruit to speed a test suite.

Explanation: Rails by default logs everything that is happening in your test environment to “log/test.log”. By increasing the logger level, you will be able to reduce the IO during your tests. The only downside of this approach is that, if a test is failing, you won’t have anything logged. In such cases, just comment the configuration option above and run your tests again.

Thank you http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/

Benchmarks on my machine (macbook 2008): saved 8 seconds for the whole test suite.

## Current, with standard logging

### RSpec

Finished in 38.42 seconds
real	0m55.244s

### Cucumber

1m50.046s real	2m0.971s

## With increased log level

### RSpec
Finished in 36.8 seconds
real	0m*52.469s*

### Cucumber

1m45.477s real	1m55.479s