Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个单元测试用例来测试 IBAction 中的代码是否正确执行。我做了一个示例来编写逻辑测试,它工作正常。我没有找到任何在 Xcode 4 中编写应用程序测试的教程或指南。任何帮助,将不胜感激。
我忘了查看苹果网站的示例。这是参考的好链接。
https://developer.apple.com/library/mac/#samplecode/UnitTests/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011742