我想在我的程序中使用behave lib。我用behave-tutorial编写代码。但是,当我“运行”我的教程项目时,我在PyCharm-console中看到:
C:\Python27\virtualenv\Scripts\python.exe "C:/Program Files (x86)/JetBrains/PyCharmProjects/tutorial/steps/tutorial.py"
Process finished with exit code 0我认为我必须使用behave.exe来运行我的项目:
C:\Python27\virtualenv\Scripts\behave.exe如何获得它?
发布于 2013-10-03 21:00:45
你可以根据你的目的配置你的运行,请看一下这里的截图:



摘自:http://automated-testing.info/t/bdd-framework-debug-testov-stepov/3392/3
发布于 2015-06-29 15:54:49
即使behave支持是now in the Professional Edition,它也是currently not in the Community Edition。
您仍然可以为给定的功能目录调用behave模块。
添加一个Python运行配置,不带脚本和以下选项:
Interpreter options: -m behave
Working directory: path/to/feature/directory
发布于 2017-01-03 21:48:01
对于mac上的PyCharm 社区 2016.3,使用以下命令设置运行配置:
目录参数:path/to/feature/directory
/usr/local/bin/behavepath/to/project/directory这样,run和DEBUG都可以工作。
https://stackoverflow.com/questions/15860074
复制相似问题