简体   繁体   中英

Fastlane scan shows zero unit tests

Running fastlane scan to run a very simple unit tests. 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.

The fastfile script is as follows:

run_tests(
    workspace: "xxx.xcworkspace",
    scheme: "UnitTests",
    device: "iPhone 8",
    clean: true,
    slack_url: "xxx",
    slack_channel: "#xxx-developers"
)

在此处输入图片说明

找到了解决方案-我们将控制台日志转移到磁盘中进行了调试,以进行解释!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM