I figured out how to run py.test files from PyCharm:
- Run/Debug configurations
- in the Python tests category, click the "+" button to add a new configuration
- choose
py.test
- enter the full path for the Target script and the working directory
but I can't seem to add the -s
option to allow my test script to run with standard output not captured and hidden. (I tried -s
under interpreter options but it appears not to do anything.)
How can I enable -s
?