我正在pytest-testrails
上做一些开发工作。我已经用一个使用python2.7的项目对它进行了测试,但是在使用python3.5的项目时,我看到了一些不知道如何调试的行为。你知道吗
我通过以下方式加载:
pip install /path/to/plugin/on/my/filesystem
当我运行py.test --trace-config
时,我看到插件肯定正在加载:
setuptools registered plugins:
pytest-django-2.9.1 at /Users/chartjes/mozilla/normandy/venv/lib/python3.5/site-packages/pytest_django/plugin.py
pytest-mock-0.11.0 at /Users/chartjes/mozilla/normandy/venv/lib/python3.5/site-packages/pytest_mock.py
pytest-testrail-0.0.4 at /Users/chartjes/mozilla/normandy/venv/lib/python3.5/site-packages/pytest_testrail/__init__.py
但当我设置其中一个CLI选项时:
py.test --testrail=contract-tests/testrail.cfg ...
你知道吗py.试验抱怨它不承认这些论点
usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: --testrail=contract-tests/testrail.cfg
inifile: /Users/chartjes/mozilla/normandy/pytest.ini
rootdir: /Users/chartjes/mozilla/normandy
关于如何调试这里可能发生的事情有什么想法吗?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐