表示框架.ini文件用法

时间:2017-06-19 13:49:30

标签: config bdd gherkin python-behave

在我的.ini文件中我有

[behave]
format=rerun
outfiles=rerun_failing.features

所以我想使用“rerun_failing.features”文件来存储失败的场景。 但是,当我运行'--steps-catalog'命令时,它还将该目录存储到同一文件中。那是为什么?

如何为命令'--rerun'和'--steps-catalog'设置两个单独的文件?

谢谢!

1 个答案:

答案 0 :(得分:0)

请改用behave --dry-run -f steps.catalog ...。 steps.catalog formatter的输出写入stdout,而不是" rerun-outputfile"。