How do I make PyCharm take the testing configuration from setup.cfg, a file which was created by PyScaffold?
I did enable PyTest from Settings -> Tools -> Python Integrated Tools -> Testing
What I have until now is a configuration saved in the Python tests section, with:
Target: Script path = C:...\setup.py
Additional arguments: test
But this is what I'm getting when I run it:
[...] ERROR: file not found: test
Or how do I replicate the same testing configuration in PyCharm, as I have in 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