【问题标题】:Does the catch unit test framework support junit-style test reports?catch 单元测试框架是否支持 junit 样式的测试报告?
【发布时间】:2015-09-09 22:54:51
【问题描述】:

计划切换到Catch unit test framework for c++

我需要测试结果为 junit 报告格式,我只是想确认它是否具有该功能。

【问题讨论】:

    标签: c++ unit-testing catch-unit-test


    【解决方案1】:

    是的,确实如此。

    您可以通过添加生成与 JUnit 兼容的 XML 报告

    -r junit
    

    到已编译的 Catch 测试套件的命令行(参见Integration with build systems)。

    【讨论】:

      【解决方案2】:

      少量reading透露:

      其他核心功能

      JUnit xml 输出支持与第三方工具集成,例如 CI 服务器。

      【讨论】:

      • 正如@maxschlepzig 指出的那样,Catch 现在支持带有-r junit 的JUnit。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-15
      • 2013-07-10
      • 2023-03-05
      • 1970-01-01
      • 2014-10-24
      • 2013-09-25
      • 1970-01-01
      相关资源
      最近更新 更多