UnitTest
public class UnitTest : CustomDebugStringConvertible, @unchecked Sendable
单元测试启动器,调试模式启动时自动执行automatic测试套件
-
执行单元测试,完成时回调是否成功
Declaration
Swift
public func runTests(completion: (@Sendable (Bool) -> Void)? = nil)
-
测试结果调试信息
Declaration
Swift
public var debugDescription: String { get }