[英]Fastlane scan shows zero unit tests
Running fastlane scan to run a very simple unit tests. 运行fastlane扫描可以运行非常简单的单元测试。 When I force an error in the unit test, it fails. 当我在单元测试中强加一个错误时,它会失败。 When I "force-pass" the test, it succeeds. 当我“强制通过”测试时,它会成功。 So the overall success/failure is working. 因此,总体成功/失败是有效的。 However, it seems to report on the results as zero number of tests both in terminal and also when I output the results to slack. 但是,似乎在终端上以及当我将结果输出到松弛状态时,报告的结果都是零次测试。
Xcode runs the test fine and reports on the results correctly. Xcode运行测试正常并正确报告结果。
The fastfile script is as follows: fastfile脚本如下:
run_tests(
workspace: "xxx.xcworkspace",
scheme: "UnitTests",
device: "iPhone 8",
clean: true,
slack_url: "xxx",
slack_channel: "#xxx-developers"
)
找到了解决方案-我们将控制台日志转移到磁盘中进行了调试,以进行解释!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.