Objective-C的单元测试和代码覆盖框架? [英] Unit Testing and Code Coverage Frameworks for Objective-C?
本文介绍了Objective-C的单元测试和代码覆盖框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我打算为iPhone编写几个应用程序,并想知道Objective-C是否有任何单元测试和代码覆盖框架?
I'm planning to write couple applications for iPhone and wonder if there are any Unit Testing and Code Coverage Frameworks for Objective-C?
推荐答案
对于iPhone应用程序的单元测试,有 OCTest 或谷歌 iPhoneUnitTesting
For unit testing iPhone apps there is OCTest or Googles iPhoneUnitTesting
对于模拟框架,您可以使用 OCMock 。 这里是让它与iPhone一起使用的指南。
For a mocking framework you can use OCMock. Here is the guide to getting it to work with the iPhone.
GCov 可以用于代码覆盖。
这篇关于Objective-C的单元测试和代码覆盖框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文