Giter VIP home page Giter VIP logo

Comments (4)

tjarratt avatar tjarratt commented on August 17, 2024

@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.

tjarratt avatar tjarratt commented on August 17, 2024

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.

mkanthan avatar mkanthan commented on August 17, 2024

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.

mkanthan avatar mkanthan commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.