我正在尝试在文本文件中运行基本的黄瓜功能:calculator / features / adding.feature.txt:
Feature: Adding
Scenario Outline: Add two numbers
Given the input "2+2"
When the calculator is run
Then the output should be "4"
当在../calculator/目录中并运行cucumber
时,我得到输出:
0场景
0步
0m0.000s
当我运行cucumber-v
时,我得到输出:
无法加载' txt'文件功能的编程语言/ adding.feature.txt:无法加载这样的文件 - cucumber / txt_support / txt_language * features / adding.feature.txt [NOT SUPPORTED]
我已经为64位安装了最新版本的ruby,最新的devkit和gem install cucumber
。
答案 0 :(得分:0)
关注Gherkin conventions后,要素文件的扩展名必须为.feature
(不允许.txt
)。尝试删除功能文件的.txt
扩展名:adding.feature