Search code examples
iphoneiosxcode4jenkinsocunit

How do I catch OCUnit's test fail/success in command line?


My Expect: # Build Successed # and # Test Failed #

Actual Result: only # Build Succeeded #

How do I get fail/success in command line? [iphone, objective-c, xcode4, OCUnit]

I'm newbe of OCUnit and Xcode4. I create project: https://github.com/sanemat/HogeHoge This is scafold code by xcode4. I run test in xcode gui, #Test Failed# appear in successfully. In commandline (I want to use jenkins),I use following command.

xcodebuild -target HogeHogeTests -configuration Debug -sdk iphonesimulator4.3 clean build

I see # Build Succeeded # and then completed. I want run test and get it's result. How?

Edited:

I found BPOCUnitXMLReporter. This is for MacOS. I forked and adjusted iOS.


Solution

  • I found BPOCUnitXMLReporter. This is for MacOS. I forked and adjusted iOS.