先启动配置_行为特征引用不存在的项目python\u behave\u templatemas

2024-05-23 22:16:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我在eclipse中配置了Pydev,还安装了behave和cucumber来运行BDD方法中的示例项目。在

每次我右键单击功能文件(dirst_行为特征)以“黄瓜特征”运行,我得到错误-

“先启动配置_行为特征引用不存在的项目python_behavior_template-master。“

我试着重新映射Python解释器,但没有成功。如果能帮助解决这个问题,我们将不胜感激。在

我使用Pycharm IDE运行python脚本,但Behave方法在Pycharm社区版本中不起作用

enter image description here


Tags: 文件项目方法功能示例特征bdd黄瓜
2条回答

Each time i right click on the feature file (dirst_behave.feature) and Run as "Cucumber feature", i get the error -

"Launch configuration first_behave.feature references non-existing project python_behave_template-master."

I was using Pycharm IDE to run python scripts, but Behave approach doesn't work in Pycharm community version.(Screenshots attached for reference)

不能直接从Pycharm IDE运行*.feature脚本。在

尝试从终端运行脚本:

behave feature/first_behave.feature

Behave在Eclipse和PyCharm(CE)中都可以工作。但还有更多的工作要做。这两个ide都允许您运行通用命令。因此,应该可以运行它。当您需要一个调试器来诊断behaver测试运行时(但是您通常需要提供您自己的脚本来导入behavior main()函数,就像behave脚本一样)。在

相关问题 更多 >