ios - 单元测试 : Is there ways to see code coverage for Swift?

标签 ios unit-testing swift

我试图找到方法,但到目前为止似乎不可能进行代码覆盖。有人知道怎么做吗?

根据 Apple 的问题跟踪器,该问题已登记,但自去年以来状态没有改变。

Is code coverage already working for Swift?

谢谢,

更新:

Swift doesn't seem to support coverage yet. by jonreid

https://github.com/jonreid/XcodeCoverage/issues/33

最佳答案

关于ios - 单元测试 : Is there ways to see code coverage for Swift?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29414234/

相关文章:

ios - 在 Collection View 中垂直和水平滚动 - 嵌入式流布局与自定义布局

ios - AFNetworking、UITableView 和 block

web-services - 使用 JUnit 测试 Web 服务

javascript - 开 Jest - 模拟函数返回的不是函数

ios - Apple 的 SwiftUI 教程代码在自制副本中不显示 View 内容

iOS block 在什么线程上调用?

perl - 当我使用 Test::Harness::runtests 运行 Perl 模块测试时,为什么它们会失败?

ios - 如何计算表格 View 中的值并显示在单独的标签中

ios - swift - 在 tableviewcell 中设置 Storyboard

ios - TableView : Terminating app due to uncaught exception 'NSInternalInconsistencyException' Error