Как мне заставить PyCharm взять конфигурацию тестирования из setup.cfg, файла, который был создан PyScaffold?
Я включил PyTest из Настройки -> Инструменты -> Python Integrated Tools -> Testing
До сих пор у меня есть конфигурация, сохраненная в разделе тестов Python, с:
Цель: путь к сценарию = C: ... \ setup.py
Дополнительные аргументы: test
Но вот что я получаю, когда запускаю его:
[...] ERROR: file not found: test
Или как мне повторить ту же конфигурацию тестирования в PyCharm,как у меня в 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