allending/Kiwi — Issue #76: Testing private or internal methods?
Author: haxie1
Created: 2011-11-30 03:53:56+00:00
State: open

Hi all,

Wondering how you go about testing internal or private methods for your classes. I know testing private methods is typically frowned on, but with Obj-C I end up with lots of internal code that I would like to have tests for. I run into a wall using BDD and tools like Kiwi, since I am not really sure how to go about speccing this behavior. How do those of you with more experience in this area go about testing the internal parts of your classes (if you write these tests at all) and would you be willing to share an example or two?

thx

kam