Cucumber安装(for WIN OS)

Cucumber官网:http://cukes.info/ 

ruby版本:

C:\>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

 

安装步骤:

step1:下载DevKit
          Please  download the DevKit from http://rubyinstaller.org/downloads 

          DevKit包:DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe(最新版本即可)

step2:安装DevKit

         Please follow the instructions at http://github.com/oneclick/rubyinstaller/wiki/Development-Kit 

         2.1)在C盘下创建目录名rubyDevKit(C:\rubyDevKit,可自定义)

         2.2)解压DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe至rubyDevKit

         2.3)命令窗口执行以下安装命令:

C:\rubyDevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.2 at C:/Ruby192

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\rubyDevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby192

C:\rubyDevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby192'
[INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb'

C:\rubyDevKit>

step3:安装Cucumber

C:\>gem install cucumber
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Fetching: gherkin-2.11.5-x86-mingw32.gem (100%)
Fetching: builder-3.1.4.gem (100%)
Fetching: diff-lcs-1.1.3.gem (100%)
Fetching: cucumber-1.2.1.gem (100%)
Successfully installed json-1.7.5
Successfully installed gherkin-2.11.5-x86-mingw32
Successfully installed builder-3.1.4
Successfully installed diff-lcs-1.1.3
Successfully installed cucumber-1.2.1
5 gems installed
Installing ri documentation for json-1.7.5...
Installing ri documentation for gherkin-2.11.5-x86-mingw32...
Installing ri documentation for builder-3.1.4...
Installing ri documentation for diff-lcs-1.1.3...
Installing ri documentation for cucumber-1.2.1...
Installing RDoc documentation for json-1.7.5...
Installing RDoc documentation for gherkin-2.11.5-x86-mingw32...
Installing RDoc documentation for builder-3.1.4...
Installing RDoc documentation for diff-lcs-1.1.3...
Installing RDoc documentation for cucumber-1.2.1...

C:\>gem list cucumber

*** LOCAL GEMS ***

cucumber (1.2.1)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值