Rails3.1 中的测试非常慢。有某种解决方案可以更快地加载测试吗?
我假设由于资产管道的原因,测试加载速度较慢。我想知道是否有某种宝石或魔法咒语可以用来加快测试加载速度。耙子测试:单位需要永远。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多不同的方法。目前流行的一个是 Spork,它可以避免多次加载整个 Rails 堆栈。
还有并行测试,它并行运行多个测试套件(利用您的多个核心/处理器)机器)。
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).