星星87

导航

Ruby Cucumber环境

1、http://rubyinstaller.org/downloads 下载rubyinstaller以及developmentkit(注意版本号要对应)

2、安装rubyinstaller以及解压developmentkit

3、打开cmd,进入developmentkit解压目录,执行ruby dk.rb init

4、运行ruby dk.rb install安装developmentkit

5、控制面板-系统-高级设置-环境变量-系统变量Path添加ruby以及developmentkit的bin目录

6、gem install json

7、gem install cucumber

8、gem install rspec

9、http://adoxa.altervista.org/ansicon/ 下载ansi166

10、双击ansicon.exe 输入ansicon -i 回车, ansicon -i -u回车

11、cmd中切换地址到cucumberexamples\i18n\en\features目录

12、cucumber addition.feature

注意事项:在安装json、cucumber等时候没有源;

解决方案:https://gems.ruby-china.org/

 

posted on 2016-05-02 20:38  晨曦87  阅读(301)  评论(0编辑  收藏  举报