Unit Tests Group

#1

On page 423, Testing in Xcode, the book says there should be 3 groups, RanchForecast, RanchForecastTests and Products.

I do not have the RanchForcastTests group. How can I add that group and any associated files to this project?

#2

Did you tick the include unit tests option when creating the project?

#3

No. It was off by default. I did not realize I’d be needing that in the next chapter. Can I add the unit testing files/group after the fact?

#4

Absolutely! All you need to do is select RanchForecast in the Project Navigator and create a new target.

From there, select Test > OS X Unit Testing Bundle from the template library and you should be off to the races.