Comments (4)
@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 ios-sim
?
Before, with Xcode 7 and ios-sim
Oct 13 20:10:03 My-MBP Specs[69607]: 508 examples, 0 failures, 5 pending
After, with Xcode 8
Oct 13 20:10:03 My-MBP Specs[69607]: 508 examples, 0 failures
Oct 13 20:10:03 My-MBP Specs[69607]: , 5 pending
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 ios-sim
and similar tools).
I don't think we'd want to change the call to printf
to NSLog
immediately, since it would end up making the default reporter output significantly messier in a lot of situations. It really seems like ios-sim
needs to handle lines printed to stdout better. Perhaps there's some room for Cedar to print better, but I'm not entirely sure what that would be without more research.
from cedar.
I've also noticed that ios-sim
is deprecated in favour of ioslib, which appears to be an npm package that exposes javascript functions that allow you to install and run apps on either a simulator or real device.
I haven't tried that out yet, but it looks promising.
from cedar.
It's actually very different with XCode 7 + ios-sim 3.1.1. It was nearly Identical to the XCode console output:
...
. should return the sound files for instructions, prompt icons and every alphabet of higher difficulty spelling tasks which need the full keyboard
LGVideoAccess
P is pending
PENDING LGLoginViewController webView:shouldStartLoadWithRequest:navigationType:navigationType: when the URL is for creating an account is pending
PENDING LGAppDelegate application:didFinishLaunchingWithOptions: should copy the database from the mainbundle to the documents directory
PENDING LGAppDelegate application:didFinishLaunchingWithOptions: should ask LGStoreKitFacade to observe purchase transactions
PENDING LGViewController when the URL scheme is 'video' is pending
PENDING LGVideoAccess is pending
Finished in 32.4752 seconds
508 examples, 0 failures, 5 pending
You'll notice that the log prefixes such as Oct 13 20:10:03 My-MBP Specs[69607]:
are gone, and I'm able to see the test copy.
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.
from cedar.
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
from cedar.
Related Issues (20)
- Console output is logged out of order HOT 1
- new project can't find cedar HOT 1
- Xcode 7.3 beta 5 errors on __weak in manual reference counting HOT 6
- Use of @import HOT 2
- Custom matchers fails to compile using Xcode 7.3 HOT 4
- Test observation issues HOT 2
- Weak References in XCode 7.3 HOT 4
- Playground support
- Installing template fails on AppCode 2016.1 HOT 1
- Cedar silently accepts misuse of the test structure DSL
- Running Individual Specs HOT 9
- Cedar, Swift and Protocol Declarations - Compiler error HOT 7
- testing watchOS with Cedar and Swift
- Cedar needs a sticker. HOT 4
- should equal throws exception when comparing const pointer to a non-const pointer HOT 5
- Cedar status HOT 1
- Xcode 9 compatibility HOT 8
- [Known Issue] Cedar's test specs cannot be folded in Xcode 9
- spy_on NSDate crashes on Xcode 10 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cedar.