I'm running a Python unittest in pycharm. This executes the command:
/<path>/python /<path>/_jb_pytest_runner.py --target my_function_test_base.py::MyFunctionTestBase
Launching pytest with arguments my_function_test_base.py::MyFunctionTestBase in //tests
I would like to add a pytest option --tb=1 that I found in this answer: Make Python unittest show AssertionError but no Traceback
I don't know how to do that under PyCharm.
Answering on behalf of comments, indeed Additional Arguments in the Edit Configurations section does pass arguments through to py.test. My error was in misusing one of the arguments, obfuscating the fact that Additional Arguments was passing on the arguments as expected.
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