且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Xcode单元测试:Xcode不会在断点处停止

更新时间:2023-09-30 12:07:22

即使这篇文章很旧,简单点检查:您的Test-Method是否以前缀test开头?

Simple point to check even if this post is quite old: Does your Test-Method start with the prefix "test"?

省略前缀不会产生一个警告,Xcode根本不会执行该方法。

Omitting the prefix doesn't produce a warning and Xcode simply doesn't execute the method any more.

这可能看起来像Xcode不会在你的断点停止 - 但是Xcode不执行所有方法!

This can look like Xcode doesn't stop at your breakpoint - nevertheless Xcode doesn't execute the method at all!