【发布时间】:2019-08-01 18:05:59
【问题描述】:
我在运行我的一个功能文件时遇到问题。我可以运行其中一个,但不能运行另一个。我对两者的运行配置都有完全相同的设置。
raise ParserError(msg, None, self.filename)
behave.parser.ParserError: Failed to parse "C:\project\test.feature":
Parser failure in state init, at line 1
REASON: No feature found.
如果我改变我得到的配置:
"C:\Program Files (x86)\Python\pythonw.exe" -m behave "C:\Program Files (x86)\JetBrains\PyCharm 2017.1\helpers\pycharm\behave_runner.py"
Testing started at 16:41 ...
ConfigError: No steps directory in "C:\Program Files (x86)\JetBrains\PyCharm 2017.1\helpers\pycharm"
【问题讨论】:
-
我在功能文件夹的终端中运行它们,只需使用命令行为。不是黄瓜,是黄瓜。 Steps 位于名为 steps 的文件夹中,我正在使用 python
标签: python bdd gherkin python-behave