【问题标题】:How to read .xcresult file to generate report如何读取 .xcresult 文件以生成报告
【发布时间】:2019-11-01 14:14:38
【问题描述】:

有人可以帮助我了解是否有一种方法可以读取通过从命令提示符执行 KIF 测试生成的 .xcresult 文件?我想在 xcode 之外阅读它以从中生成一些报告。 谢谢 萨米尔

【问题讨论】:

    标签: testing kif


    【解决方案1】:

    我使用 xcparse 和 xcresulttool 将结果解析为 JSON。 您可以通过 home-brew 或等效的方式安装两者

    $ brew install chargepoint/xcparse/xcparse
    

    收集一个 xcresult 的所有屏幕截图

    $ xcparse screenshots --test <path-to-.xcresult> <destination_path>
    

    这是我找到方法的地方:https://www.chargepoint.com/engineering/xcparse/

    【讨论】:

      猜你喜欢
      • 2011-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-28
      • 2011-06-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多