I figured out how to run py.test files from PyCharm:
py.test
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
?
PyCharm makes it easy to select just one test to run. In fact, there are several ways to do it: With the cursor anywhere in the test you want to focus on, right-click and choose to run that in the test runner. Right-click on the test in the test tool listing and choose to run it.
From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . In the left-hand pane of the run/debug configuration dialog, click Edit configuration templates…. In the Run/Debug Configuration Templates dialog that opens, select a configuration type.
D'oh, I figured it out after all:
You add it in the py.tests Options area of the Run/Edit configuration dialog.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With