Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good example projects for the Kiwi testing library (offering more complexity than 2+2)

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?

like image 339
Christian Schlensker Avatar asked Oct 03 '11 02:10

Christian Schlensker


4 Answers

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

like image 178
Dexter Avatar answered Nov 13 '22 17:11

Dexter


Thi is good link to see, how to use Kiwi for testing:

https://github.com/IgorFedorchuk/use-bdd

like image 32
Igor Avatar answered Nov 13 '22 17:11

Igor


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:

  • Objective-Record
  • ObjectiveSugar
  • Alcatraz

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.

like image 4
lukestringer90 Avatar answered Nov 13 '22 17:11

lukestringer90


Just throwing my two cents, the actual wiki for the Kiwi git's project has some nice examples:

  • https://github.com/allending/Kiwi/wiki/Specs
  • https://github.com/allending/Kiwi/wiki/Mocks-and-Stubs
like image 2
Rui Peres Avatar answered Nov 13 '22 17:11

Rui Peres