我如何像在setup.cfg中一样在PyCharm中复制相同的测试配置?

时间:2018-12-31 10:05:11

标签: python python-3.x pycharm pytest

我确实从Settings -> Tools -> Python Integrated Tools -> Testing启用了PyTest

setup.cfg由PyScaffold创建

这是我在setup.cfg中拥有的:

console_scripts =
program = program.main:run

[test]
# py.test options when running `python setup.py test`
# addopts = --verbose
extras = True

[tool:pytest]
# Options for py.test:
# Specify command line options as you would do when invoking py.test directly.
# e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml
# in order to write a coverage file that can be read by Jenkins.
addopts =
--cov reddit_users_info --cov-report term-missing
--verbose

[...]

testpaths = tests

如何在PyCharm测试配置中复制这些设置?

0 个答案:

没有答案