1.保证安装了rspec,rspec-rails
2.安装ZenTest
3.创建并编辑~/.autotest
4.运行
2.安装ZenTest
sudo gem install ZenTest3.创建并编辑~/.autotest
Autotest.add_hook :initialize do |at|
%w{.svn .hg .git vendor}.each {|exception| at.add_exception(exception)}
end4.运行
script/autospec
本文介绍RSpec与ZenTest在Rails项目中的应用,包括RSpec的安装、ZenTest的安装步骤,以及如何通过Autotest配置实现自动化测试。通过具体命令展示整个设置过程。
725

被折叠的 条评论
为什么被折叠?



