paytonrules / OCDSpec

An awesome TDD framework for Objective-C
http://paytonrules.com/OCDSpec/
MIT License
19 stars 4 forks source link

Fix exit code of mac specs and small typo fix #20

Open ericmeyer opened 12 years ago

ericmeyer commented 12 years ago

Before, both xcodebuild and running the built product always had an exit code of 0.

Now, the exit code of the xcodebuild command is 65 for spec failures and 0 when successful. (There may be other significant codes, but I can't change this.)

To get the exit code corresponding to the number of failing tests, you have to run the built product.

$ ./build/Debug/TestMacVersion 
/Users/eric/Projects/8thlight/OCDSpec/Specs/OCDSpecOutputter+RedirectOutputSpec.m:20: error: The Test data was not redirected
Tests ran with 46 passing tests and 1 failing tests

$ echo $?
1