我在 Firebase 中使用测试实验室,我发现的问题与 iOS 中的结果有关,因为它没有显示我的集成测试中的所有用例。
这是我在 Android 中的结果,我可以在 TestLab 中看到所有用例。
在 iOS 中,我找不到我的测试用例,我只找到一个调用我的两个用例的用例。
我检查了日志,这两个测试用例是在 iOS 中执行的,但问题在于 TestLab 控制台中显示的结果。我想查看所有用例。
最佳答案
截至https://github.com/flutter/flutter/pull/95704 , Flutter integration_test
将为每个 dart 测试动态创建一个原生的 XCTestCase。这将匹配 Android 的行为,您应该会在 TestLab 中看到 1:1 的测试结果,或者如果您在 Xcode 中从 ios/Runner.xcworkspace
本地运行测试。
修复将在下一个稳定版本中提供。
关于ios - TestLab for iOS 中的 Flutter Integration 测试 - Use cases is not divided in iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68738425/