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:/Ruby192Initialization 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)