Xcode 4中的SenTestingKit:异步测试?
|
我一直在寻找一种使用SenTestingKit在客户端代码和服务器之间进行集成测试的方法。我没有运气。看起来,一旦代码在方法中运行,对象就会被破坏。这意味着任何异步响应都不会调用选择器。
问题:
有没有一种方法可以保持对象实例化,直到我认为合适的时候可以销毁它-即。测试完成后?
如果没有,我如何创建一个阻塞(即同步执行)直到测试完成的类?
仅供参考,我正在运行测试服务器,我知道预期的结果。
我已经做了很多谷歌搜索,但是还没有看到关于此的一种或另一种证明。我确定其他人也会对此感兴趣。
没有找到相关结果
已邀请:
5 个回复
穗揣
讼乐
} http://samwize.com/2012/10/03/sentestingkit-does-not-support-wait-for-blocks/
断跑胺弄萎
篮肥炼皖
您可以像这样编写测试
耐扫鹤胶鞭