【问题标题】:print stdoutput using python behave使用 python 打印标准输出行为
【发布时间】:2021-05-04 08:15:34
【问题描述】:

我想表现出输出所有打印语句 - 例如用于命令行调试。

默认情况下,behave 捕获所有标准输出并仅在失败时打印。

@when('we implement a test')
def step_impl(context):
     print ('please debug me')
     assert True is not False

【问题讨论】:

    标签: python testing bdd python-behave


    【解决方案1】:

    使用: behave -f plain --no-capture

    【讨论】:

      猜你喜欢
      • 2013-05-01
      • 2012-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多