What is the best unit test framework for iPhone?
-
List of unit testing frameworks http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks
-
Answer:
I prefer https://github.com/allending/Kiwi for BDD syntax and easy integration with Xcode.
Jonah Williams at Quora Visit the source
Other answers
OC unit can be used for tracking functionality issues as well as Unit Test case automation.A lot of diagnostic information is available for mobile devices now, which helps the developer assess the application on many functional and non functional criteria. iPhone OCUnit can be used for tracking functionality issues as well as Unit Test case automation Android JUNIT can be used for Unit Test case automation. Commands for monkey testing are supported hence various Test cases which include Black Box (Device) Testing can be done on emulator without actual need of device There are various troubleshooting abilities provided by SDKs and third party tools for all mobile platforms. I came across a blog which lists down all the best available testing frameworks for Mobile devices. http://blog.harbinger-systems.com/2011/02/trouble-shooting-mobile-applications/
R. Chaitanya
This isn't a framework, but I have written a library that you use with OCUnit to make tests a little more readable. My library is called NSUnit, because its more for use with the foundation classes, where I feel like OCUnit (despite the name) is very C-like in its syntax. Here is an example of an NSUnit test: - (void) test_ArrayWithMultipleElementsLessThanRValue_doesNotFail { NSArray *the_array = [NSArray arrayWithObjects:@12, @13, @14, nil]; [Assert that:the_array areAll:[Less than:@15]]; } The source is available here: https://github.com/jacksonh/NSUnit
Jackson Harper
Related Q & A:
- What is the best way to study for a test?Best solution by Yahoo! Answers
- What is the best HD Radio Head Unit?Best solution by Yahoo! Answers
- What is the best "emoji" app for the iPhone?Best solution by Yahoo! Answers
- What's the best IQ test book?Best solution by braintraining101.com
- What is the best Twitter app for the iPhone and why?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.