Rails 我没火星吧, 测试时用 memory db,可以快很多哦。

hhuai · August 07, 2012 · 1955 hits

82 个 rspec 的 examples

用是 13 秒左右,不用是 19 秒左右。 差不多有 32% 的提高

参考了这里 http://www.osmonov.com/2011/01/in-memory-sqlite-database-for-testing.html

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.