Testing in Rails3.1 is very slow. Is there some sort of solution to load the tests faster?
I am assuming that the tests are loading slower because of the asset pipeline. I am wondering if there is 开发者_运维知识库some sort of gem, or magical spell that I can use to make the tests load faster. rake test:units takes forever.
There's a bunch of different ways. A popular one right now is Spork, which avoids loading the entire Rails stack multiple times.
There's also Parallel Test, which runs multiple test suites in parallel (taking advantage of the multiple cores/processors on your machine).
精彩评论