OCUnit Parameterized Test Case
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet