Hi Matt,
Unfortunately a rake file is not included in current targets. It's in our roadmap to add these.
The documentation is referring to the Rakefile found in the cedar source. It contains a few tasks which demonstrate how different test targets can be run.
Also, unless it has been fixed recently, there is a bug in Apple's command line tools preventing command line launches of the 6.0 simulator. Until it's fixed you'll probably have to stick with 5.1 for running your simulator tests.
--Sam
On Nov 15, 2012, at 7:27 PM, Matt Wilson <
matte...@gmail.com> wrote:
> Hi,
> I have an iOS project that has OCUnit and Cedar tests in it. I'm able to run the Cedar tests via XCode 4.5.2 by selecting the Specs scheme and then Product->Test. That works well. But when I try to run the tests via the command line, it doesn't work. Here's what I'm doing:
>
> /usr/bin/xcodebuild -target Specs -configuration Debug -sdk iphonesimulator6.0 clean build TEST_AFTER_BUILD=YES
> ...
> /bin/sh -c /Users/matterfact/labzero/ios_jenkins_demo/build/Lunch.build/Debug-iphonesimulator/Specs.build/Script-73EC3DFD1655908200D9C0D2.sh
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/Tools/RunPlatformUnitTests:81: warning: Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set).
>
> When I remove the simulator option:
> /usr/bin/xcodebuild -target Specs -configuration Debug clean build TEST_AFTER_BUILD=YES
> ...
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
> ** BUILD FAILED **
>
> The following build commands failed:
> Ld build/Lunch.build/Debug-iphoneos/Specs.build/Objects-normal/armv7s/Specs normal armv7s
>
> The README on
https://github.com/pivotal/cedar in the "Command Line Automation" section talks about running rake, but after the installation there is not a Rakefile.
>
> Any tips?
>
> Thanks,
> Matt
>
>
>