【问题标题】:Running xctool run-tests without building tests on machine运行 xctool 运行测试而不在机器上构建测试
【发布时间】:2016-05-10 21:59:13
【问题描述】:

我想使用 xctool 运行我的测试,而不必事先在机器上构建测试。基本上,我想在一台机器上构建测试,将它们转移到其他几台机器上并从那里并行运行。

所以我需要知道命令是什么文件 xctool run-tests 需要为了运行测试,所以我可以将这些文件传输到每台计算机以并行化我的运行。

【问题讨论】:

    标签: ios xcode xcodebuild xctool


    【解决方案1】:

    您可能想要由xctool build-tests 生成的文件,它构建测试但不运行它们。

    xctool 在命令行上输出的最后一个文件是最终.xctest 的路径——或者至少对我来说是这样。不管怎样,这就是你需要的。

    https://github.com/facebook/xctool#building-tests

    如果你只想执行那个测试包,你可以这样做:

    xcrun -sdk iphonesimulator simctl spawn booted $(xcrun --show-sdk-platform-path -sdk iphonesimulator)/Developer/Library/Xcode/Agents/xctest /path/to/tests.xctest
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-23
      • 2020-08-26
      • 1970-01-01
      • 2012-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多