简体   繁体   English

Fastlane扫描显示零单元测试

[英]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.

相关问题 iOS Swift UI 测试 (XCUITests) 稳定性问题 - 快速通道扫描 - iOS Swift UI Tests (XCUITests) stability problem - fastlane scan 运行 UI 测试时 Fastlane 扫描“无法合成事件”,适用于 Xcode - Fastlane Scan “Failed to synthesize event” when running UI Tests, works from Xcode 防止fastlane扫描隐藏模拟器 - Prevent fastlane scan from hiding the simulator Fastlane iOS测试在本地通过,但不是从Jenkins通过 - Fastlane iOS tests pass locally but not from Jenkins Fastlane:在没有构建的情况下运行 iOS 单元测试 - Fastlane: Run iOS unit test without build 如何仅在 Fastlane 中运行单元测试 - How to run unit test only in Fastlane 测试 SPM 包时,Fastlane 扫描随机失败 - IDEContainerErrorDomain Code=6 - Fastlane scan failing randomly when testing SPM packages - IDEContainerErrorDomain Code=6 Fastlane Scan的构建过程错过了Jenkins CI上的CocoaPod框架 - Fastlane Scan's build process misses a CocoaPod framework on Jenkins CI 如何使用 fastlane 扫描设置 COMPILER_INDEX_STORE_ENABLE=NO? - How to set COMPILER_INDEX_STORE_ENABLE=NO using fastlane scan? 当没有单元测试时,为什么Xcode 7显示大约12%的代码覆盖率? - Why Xcode 7 shows around 12% code coverage when there are no unit tests at all?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM