我希望behave输出所有的print语句--例如用于命令行调试。
默认情况下,behave捕获所有std-output,并仅在失败时打印。
@when('we implement a test')
def step_impl(context):
print ('please debug me')
assert True is not False发布于 2021-05-04 16:15:35
用法:behave -f plain --no-capture
https://stackoverflow.com/questions/67381063
复制相似问题