6

Wondering which tool is considered the best/standard and what the pros/cons are for the various unit testing tools that are available. The tools I'm aware of so far are:

Of course I'd love to learn about any I've missed.

Community
  • 1
  • 1
dstnbrkr
  • 4,305
  • 22
  • 23
  • Similar thread here: http://stackoverflow.com/questions/159280/do-ocunit-and-ocmock-work-on-the-iphone-sdk – boj Apr 10 '09 at 19:12

2 Answers2

4

Google toolbox for Mac(GTM) is a superset of OCUnit. It adds more assert macros, and also has a support for UI testing. OCMock is how you can incorporate mock objects into your unit testing environment.

I have just recently created a project and file template for creating static libraries that also has built-in support for unit testing. You can read about it:

http://www.codingventures.com/2009/04/xcode-templates-for-iphone-static-libraries-with-unit-testing/

And the templates are located at:

http://github.com/keremk/iphone-static-library-project-template/tree/master

The file template gives you an easy way to add a unit test class with all the necessary OCMock and GTM/OCUnit headers.

keremk
  • 2,303
  • 14
  • 10
1

You may be interested in answers to this question: Do OCUnit and OCMock work on the iPhone SDK?. Some links for short:

Community
  • 1
  • 1
mouviciel
  • 66,855
  • 13
  • 106
  • 140