How can I see print() statements in behave (BDD)

前端 未结 5 991
野趣味
野趣味 2020-12-08 06:38

Context: I am using Python with Behave (BDD).

Whether I run my tests from the command line (behave) or from a custom main(), the behavior is the same: the test runs

5条回答
  •  感动是毒
    2020-12-08 07:14

    from command line, you can use the following:

    --no-capture for any stdout output to be printed immediately.

    --no-capture-stderr for any stderr output to be printed immediately.

提交回复
热议问题