0

I would like to see the output as it is being printed (and not after the test ends).

I am using PyCharm. From the command line I would have added -s argument.

Yariv
  • 361
  • 3
  • 10
  • 2
    Does this answer your question? [Pycharm and sys.argv arguments](https://stackoverflow.com/questions/33102272/pycharm-and-sys-argv-arguments), also https://stackoverflow.com/q/14405063 – bad_coder Jun 14 '21 at 10:57
  • @bad_coder , No. The first question you linked is not about pytest and its answers don't mention the "Additional arguments" field. The second question is not about Pycharm. – Yariv Jun 14 '21 at 13:44
  • Those 2 threads together answer the question sufficiently, but if you want even more precision there's [How do I configure PyCharm to run py.test tests?](https://stackoverflow.com/q/6397063) – bad_coder Jun 14 '21 at 14:50
  • @bad_coder , thanks, one of the unaccepted answers there does mention "additional arguments". – Yariv Jun 15 '21 at 11:04
  • No problem, voting to close a question is nothing personal. I sometimes cast 50 close votes in a day, it's the only way SO can keep organized. Last year [half a million questions were closed](https://meta.stackoverflow.com/q/404558) and 6000 questions get asked daily, and 3000 posts deleted. – bad_coder Jun 15 '21 at 11:21

1 Answers1

0

In the test's configuration (Run -> Edit configurations...), in the "Additional arguments:" field, add: "-s".

Yariv
  • 361
  • 3
  • 10