您知道在 iPhone / iPad 上使用 GHUnit 的 OCMock 教程吗?
我在我的项目中使用 GHUnit,我需要了解 OCMock 来完成我的单元测试(但我对此很陌生)。我正在使用 xcode 3.2.5
有人知道关于 OCMock 的好教程吗?
谢谢。
I'm using GHUnit in my project and i need learn about OCMock for complete my Unit Tests (but i am new to this). I'm working with xcode 3.2.5
somebody knows about a good tutorial on OCMock?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚快速 Google 搜索“OCMock”,发现了一些OCMock 上的小教程。但不能与 GHUnit 结合使用。我使用这个组合并且效果非常好。 OCMock 在 GHUnit 框架内工作没有问题。我的项目中将它们作为静态框架。我还建议阅读 OCMock 网站上的文档。虽然我觉得有点轻。
好吧,这不是教程,但请查看 dUsefulStuff 和 dXml。该代码是我之前使用静态框架的,但它确实同时使用了 OCMock 和 GHUnit。在 dXml 之后我开始的 dUsefulStuff 中更是如此。 dXml 有大约 130 个单元测试,dUsefulStuff 有大约 30 或 40 个单元测试,因此应该有足够的 eb 来给您一个想法。我应该很快就会更新这两个库。
I just did a quick google search for "OCMock" and it found a couple of small tutorials on OCMock. But not in combination with GHUnit. I use this combination and it works very well. OCMock has no problem working within the GHUnit framework. I have both of them in my projects as static frameworks. I'd also suggest have a read through the documentation on the OCMock website. Although I think it's a little light.
Ok, it's not a tutorial but take a look at the sources for dUsefulStuff and dXml. the code is pre me using static frameworks, but it does use both OCMock and GHUnit together. More so in dUsefulStuff which I started after dXml. dXml has around 130 unit tests and dUsefulStuff around 30 or 40 so there should eb enough to give you an idea. I should be updating both of these libaries soon.