Brian Coyner 8/30/2011

OCUnit Parameterized Test Case

Read Original

This technical article provides a step-by-step guide to creating parameterized test cases in OCUnit, the testing framework for Objective-C. It explains the concept of data-driven tests, compares the approach to JUnit, and walks through a concrete example using a class that generates a numeric index from an NSDate. The guide includes code snippets for both the production class and the test suite setup, detailing how to override `defaultTestSuite` to run a single test method with multiple input datasets.

OCUnit Parameterized Test Case

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser