I'm planning to write couple applications for iPhone and wonder if there are any Unit Testing and Code Coverage Frameworks for Objective-C?
The most scalable way to write unit tests in C is using a unit testing framework, such as: CppUTest. Unity. Google Test.
For performing unit tests on Java-based applications, developers often use two frameworks: JUnit and NUnit. Developed by Erick Gamma and Kent Beck, JUnit is the preferred choice for automating unit tests for Java-based applications. It was developed with the sole intention of writing and running repeatable tests.
Unit tests help to ensure functionality and provide a means of verification for refactoring efforts. Code coverage is a measurement of the amount of code that is run by unit tests - either lines, branches, or methods.
For unit testing iPhone apps there is OCTest or Googles iPhoneUnitTesting
For a mocking framework you can use OCMock. Here is the guide to getting it to work with the iPhone.
GCov can be used for code coverage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With