我使用的是Cuke4Nuke的0.3.1版本,在用英语以外的语言定义功能文件时遇到问题。google没有带来任何解决方案,所以我的问题很简单:Cuke4Nuke是否支持用英语以外的其他语言定义这些特性?
# language: no
Egenskap: Summering
For å unngå at firmaet går konkurs
Må regnskapsførerere bruke en regnemaskin for å legge sammen tall
Scenario: to tall
Gitt at jeg har tastet inn 5
Og at jeg har tastet inn 7
NÃ¥r jeg summerer
Så skal resultatet være 12
编译并通过Cuke4Nuke运行时,错误消息如下:
C:\工作\我的项目\测试\集成测试\bin\调试\集成.Tests.dll
C:\工作\我的项目\测试\集成测试\特点
-q C:/\工作/我的项目/测试/集成.测试/功能/总结.特点:
第2行的Lexing错误:“Egenskap:
“夏天”。看到了吗
http://wiki.github.com/aslakhellesoy/gherkin/lexingerror
更多信息。
(小黄瓜::Lexer::LexingError)
C://\u work/tools/Ruby186/lib/ruby/gems/1.8/gems/gherkin-2.2.4-x86-mingw32/lib/gherkin/lexer/i18n_词汇量:22:英寸
scan'
C:/_work/tools/Ruby186/lib/ruby/gems/1.8/gems/gherkin-2.2.4-x86-mingw32/lib/gherkin/lexer/i18n_lexer.rb:22:in
C://\u work/tools/Ruby186/lib/ruby/gems/1.8/gems/gherkin-2.2.4-x86-mingw32/lib/gherkin/parser/解析器。rb:31:英寸
parse'
C:/_work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/../lib/cucumber/feature_file.rb:35:in
'解析'
load'
C:/_work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/../lib/cucumber/runtime/features_loader.rb:26:in
每人
C://\u work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/。/lib/cucumber/runtime/features_装载机rb:26:英寸
load'
C:/_work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/../lib/cucumber/runtime/features_loader.rb:14:in
C://\u work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/。/lib/cucucumber/运行时.rb:179:英寸
features'
C:/_work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/../lib/cucumber/runtime.rb:32:in
快跑
C://\u work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/。/lib/cucucumber/cli/主rb:54:英寸
execute!'
C:/_work/tools/Ruby186/lib/ruby/gems/1.8/gems/cucumber-0.9.0/bin/../lib/cucumber/cli/main.rb:29:in
执行'
load'
'加载'
似乎cuke4nuke(或者Cucumber?)完全跳过语言声明。例如,以下特性在不应该的情况下工作。
# language: fi
Feature: Addition
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers
Scenario Outline: Add two numbers
Given I have entered <input_1> into the calculator
And I have entered <input_2> into the calculator
When I press <button>
hen the result should be <output> on the screen
Examples:
| input_1 | input_2 | button | output |
| 20 | 30 | add | 50 |
| 2 | 5 | add | 7 |
| 0 | 40 | add | 40 |
你知道我怎样才能让黄瓜和Cuke4Nuke注意到语言声明吗?我的Ruby是1.86版,Cucumber是0.9版。