我确实从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测试配置中复制这些设置?