Kiwi 测试库的任何好的示例项目(提供比 2+2 更多的复杂性)
我正在寻找一个很好的示例项目/教程来展示 Kiwi 测试框架的实际应用。我不需要更多的测试类示例,其唯一目的是将两个数字相加或类似的普通事情。这样的例子已经有很多了。
我对测试 UIViewController 子类和负责数据获取的类的策略特别感兴趣。
针对 Web 服务进行测试的现有策略是什么。是为了从 fetch 调用中删除返回方法吗?
I'm looking for a good example project/tutorial that show the Kiwi testing framework in action. I don't need any more examples of testing classes with the only purpose of adding 2 numbers together or something mundane like that. There are plenty of those examples already.
I'm particularly interested in strategies for testing UIViewController subclasses and classes that are in charge of data fetching.
What are the strategies that exist for testing against a web service. Is it to stub out the return methods from the fetch calls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
有一个与“Test Driven iOS Development with Kiwi”这本书相关的网站
您可以在这里找到代码示例和深入教程。
http://editorscut.com/Books/001kiwi/001kiwi-details.html
我自己尝试过,效果非常棒,特别是如果您正在 iOS 上开始使用 Kiwi。
该网站还有一个包含代码示例的 github 链接。
https://github.com/editorscut/ec001-iOS-Testing-With-Kiwi
There is a website related to the book "Test Driven iOS Development with Kiwi"
You could find out code samples and in-depth tutorial over here.
http://editorscut.com/Books/001kiwi/001kiwi-details.html
I tried it out myself and it is great, especially if you are getting started with Kiwi on iOS.
The website also has a link to the github with code samples.
https://github.com/editorscut/ec001-iOS-Testing-With-Kiwi
这是一个很好的链接,了解如何使用 Kiwi 进行测试:
https://github.com/IgorFedorchuk/使用-bdd
Thi is good link to see, how to use Kiwi for testing:
https://github.com/IgorFedorchuk/use-bdd
Github 上的 mneorr 最近似乎用 Kiwi 测试了他的大部分项目。我还认为他是 Kiwi 项目本身的合作者。以下项目使用 Kiwi 进行不同覆盖程度的单元测试:
我使用 Kiwi 来测试这个项目。我不自称是单元测试/TDD/BDD/Kiwi 大师,但也许它会对某人有所帮助。
mneorr on Github seems to test most of his projects with Kiwi these days. I also think he is a collaborator on the Kiwi project itself. The following projects use Kiwi for unit tests with varying degrees of coverage:
I've used Kiwi to test this project. I don't profess to be a unit testing/TDD/BDD/Kiwi master but maybe it will help someone.
只是抛出我的两分钱,实际的 Kiwi git 项目的 wiki 有一些很好的例子:
Just throwing my two cents, the actual wiki for the Kiwi git's project has some nice examples: