`
weimou66
  • 浏览: 1246896 次
文章分类
社区版块
存档分类
最新评论

Ubuntu上使用autotest做Rails项目的自动测试 - autotest安装和测试

 
阅读更多

Automate Everything: Ruby, Linux and other hints, tips and tricks.

Gnome and Autospec Notifications

autospec notification XFCE/Gnome

注:不需要安装autotest (参考Ruby on Rails 3 Tutorial: 3.2.1 Testing tools),好像是ZenTest里面有autotest了。

安装ZenTest gem
$ sudo gem install ZenTest
$ sudo gem install redgreen


然后安装libnotify-bin package

$ sudo apt-get install libnotify-bin

在Home目录创建文件 ~/.autotest 内容如下

和原文Automate Everything 唯一不同的地方是要掉redgreen那一行。




下载红绿图片到目录~/.autotest_images/.

autotest_images.zip


在Ubuntu X Windows Gnome窗口里面,按CTL + ALT打开一个Terminal窗口,进入你的Rails项目目录,执行autotest,会自动反复测试你的项目,并弹出如上面的X Windows窗口提示你有多少个测试Pass了,多少个测试Failed。


参考:

Rails项目配置rspec: Ruby on Rails 3 Tutorial: 3.2.1 Testing tools

安装配置:Automate Everything

安装配置:http://jetpackweb.com/blog/2009/09/01/autotest-notifications-on-ubuntu-using-lib-notify/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics