【问题标题】:Behat formatter - test in IDEBehat 格式化程序 - 在 IDE 中测试
【发布时间】:2014-03-11 14:14:51
【问题描述】:

是否可以设置 Behat,使其在 IDE 中将结果显示为通过/失败测试,​​类似于显示 PHPUnit 测试?我想要的是图形输出(见下图),而不仅仅是描述各个场景的文本:

【问题讨论】:

    标签: php testing ide bdd behat


    【解决方案1】:

    我不确定,但我认为您可以使用 junit 输出格式并将其加载到您的 IDE/其他应用程序中。

    http://docs.behat.org/guides/6.cli.html

    $ behat -f pretty,progress,junit --out ~/pretty.out,,xml
    

    在这种情况下,pretty formatter 的输出会被写入 ~/pretty.out 文件,junit formatter 的输出会被写入 xml 文件夹,progress formatter 只会打印到控制台。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-30
      • 2017-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-22
      相关资源
      最近更新 更多