
The pre-built monkey parts are OCUnit (now bundled with the Xcode developer tools), and gcov (bundled with Xcode 2.1 and later). Also, this monkey would be commanded to do his (or her - I hear she-monkeys make great testers, too) dirty work every time I build my code. This monkey would make the perfect companion to my development efforts. I decided to find as many pre-built monkey parts to make the most efficient monkey possible. Perhaps I should rephrase that last sentence. So, I decided to spend some time building a better monkey to do the job for me. I know that I, for one, do not want to waste my time monkey-testing my code after making changes to underlying frameworks. We have to treat that spare time with respect, and fire on all cylinders during our coding sessions. Motivation Many of us independent developers work in our spare time. See bottom of article for a list of changes.
#Xl testview code coverage how to#
Here I will give you a quick overview of how (and why) I write unit tests, and how to use gcov to make your unit testing more effective. It's not glamorous to think of every possible execution path - but if you fail to plan, you're planning for failure.

However, every one of them is valuable, no matter how you produce them (OmniOutliner, Excel, TextEdit, a napkin, your arm). Introduction We all know unit tests suck, right? However, I think they suck in the same way that writing design documents, requirements, or test plans suck.

Unit Testing and Code Coverage with Xcode
