[英]How to pass plugin options to py.test when using Pycharm's py.test runner?
我正在尝试使用Pycharm py.test测试运行程序运行一些测试,我需要将命令行选项传递给py.test插件( pytest-beds )。
我尝试将选项添加到测试运行配置的“其他选项”字段中,但是出现以下错误:
Testing started at 9:54 AM ...
/usr/local/bin/python /Applications/PyCharm.app/Contents/helpers/pycharm/_jb_pytest_runner.py -- --sdk-path=/some/other/long/path/google-cloud-sdk/platform/google_appengine tests/test_fixture_handler
Launching py.test with arguments --sdk-path=/some/other/long/path/google-cloud-sdk/platform/google_appengine tests/test_fixture_handler in /some/long/path
usage: _jb_pytest_runner.py [options] [file_or_dir] [file_or_dir] [...]
_jb_pytest_runner.py: error: unrecognized arguments: --sdk-path=/some/other/long/path/google-cloud-sdk/platform/google_appengine
inifile: /some/long/path/pytest.ini
rootdir: /some/long/path
Process finished with exit code 2
Empty test suite.
在pytest.ini中添加了采用的选项,但是我得到了相同的结果。
基本上与以下问题相同: PyCharm无法加载NoseGAE 。 Google App引擎包含一个古老的setuptools,会干扰py.test加载插件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.