-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cedar Standalone with XCode 8/ios-sim 5.0.8 #399
Comments
@mkanthan if I understand correctly, the problem you're facing is that it's difficult to get the original output printed by Cedar under Xcode 7 with Xcode 8 and the latest Before, with Xcode 7 and
After, with Xcode 8
That sounds mighty frustrating. I don't know how much we can do, as Cedar maintainers to help out here. I personally, really truly dislike Test Bundles (for a variety of reasons), and I'm glad to hear you've been using standalone "spec suites" with Cedar. Unfortunately, this has historically meant trading more reasonable test execution for less well supported automated test running (with I don't think we'd want to change the call to |
I've also noticed that I haven't tried that out yet, but it looks promising. |
It's actually very different with XCode 7 + ios-sim 3.1.1. It was nearly Identical to the XCode console output:
You'll notice that the log prefixes such as I agree with your comment about disliking Test bundles - I do like my current route because I'm able to run this as part of a rake task which runs other RSpec and Jasmine tests. I will check out ioslib. |
Since upgrading, I've been on Phonegap's ios-sim, and I believe I found an issue related to their logging which no longer logs to stdout: ios-control/ios-sim#181 |
Before my massive upgrade, I was running XCode 7.3.1, and ios-sim 3.1.1, with Cedar 0.13.1 and all was working fine. I have Cedar set up in the "standalone" configuration and have a rake task which executes the xcodebuild command and runs the Specs in ios-sim. Running the Specs target from XCode works as well. I used the Cedar Rakefile from the templates with some modifications:
I won't post the whole Rakefile here because I believe it's irrelevant.
Enter XCode 8/Cedar 1.0. Upon upgrading and running my
rake Specs
command - when it executes theios-sim launch ...
command, I'm greeted with an error:Failed to find class DTiPhoneSimulatorSystemRoot at runtime.
After digging through ios-sim's repository, I learned that the
DTiPhoneSimulatorSystemRoot
is not present in the newest XCode, prompting me to upgrade (no longer viabrew
- you now have to install ios-sim vianpm
). I've upgraded to ios-sim 5.0.8. Upon runningrake Specs
, it seems to run, but the task no longer completes, and I no longer get the same test output. Instead, I get most of XCode's warnings and such:Upon doing some more digging through ios-sim's Issues, it seems they changed the way they log the output, and it seems to be ignoring the
printf
statement inCDRDefaultReporter.m
on line 97. Changing this to an NSLog gets me a tad further:Now the output becomes:
So now, I get some partial test output and the task exits when it sees
0 failures
printed in the log. Ideally, I'd want this to work on par with the way it used to, however, I'm not sure what the scope is. Is there any way to get this to print similar to the XCode console when running a standalone Specs target?The text was updated successfully, but these errors were encountered: