如何在 Rails 测试中结合 autotest 和 spork? [英] How to combine autotest and spork in Rails testing?

查看:15
本文介绍了如何在 Rails 测试中结合 autotest 和 spork?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自动测试通过仅运行已更改的测试来提高测试的运行速度.

Autotest increases the speed at which tests run by running only the changed tests.

但我想通过使用 spork 预加载 Rails 环境来进一步推动它,这样我将获得更快的反馈.

But I want to push it even further by using spork to preload the Rails environment, so that I will get even faster feedback.

这可能吗?

自动测试:https://github.com/grosser/autotest

Spork:http://github.com/timcharper/spork

推荐答案

ARTICLE1 mikbe 有你介绍过! 我会尝试在这里重新表述,但这篇文章做得很好.

ARTICLE1 mikbe has you covered! I would attempt to rephrase it here, but the post does such a great job.

如果您碰巧在 OSX 上,也有使用 Growl 通知托盘的说明.

If you happen to be on OSX, there are also instructions to utilize Growl for tray notifications.

ARTICLE2 Ruby Inside 还提供了 Rails 3 和 RSpec 2 的演练.

这篇关于如何在 Rails 测试中结合 autotest 和 spork?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆