GithubHelp home page GithubHelp logo

isabella232 / simulator-launch-timeout-includes-build-time Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitrise-io/simulator-launch-timeout-includes-build-time

0.0 0.0 0.0 19 KB

Shell 26.45% Objective-C 73.55%

simulator-launch-timeout-includes-build-time's Introduction

xcodebuild test vs xcodebuild build test

This is a sample project demonstrating an Xcode bug.

Related Radar link: https://openradar.appspot.com/22413115

Given

  1. An iOS application
  • created from the "Single View Application" template
  1. whose build takes > 120 seconds
  • faked with a Run Script phase that sleeps for 125 seconds

Notes

  • Xcode 7.1: there might have been changes / improvements, as running bash test-fails.sh did not fail if the iOS Simulator was running, only if you don't have the simulator open (which is usually the case on a CI server/service)
    • this practically means that if you run bash test-ok.sh first and then bash test-fails.sh it'll work with Xcode 7.1, but not if you close the iOS Simulator and you just run bash test-fails.sh
    • if the Simulator is not open running bash test-fails.sh won't even open it
  • Xcode 7.0, Xcode 6.4: running bash test-fails.sh it failes in every case

orig.test-only-fails.sh / test-fail.sh

Note: test-fail.sh is a minimized version of the original orig.test-only-fails.sh script, fails just like the original, more verbose version.

This build script runs xcodebuild test. During the build process, xcodebuild logs:

xcodebuild[54591:624937]  iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.

Just after xcodebuild touches the xctest bundle, it reports

** TEST FAILED **

without even trying to launch the simulator.

orig.build-and-test-succeeds.sh / test-ok.sh

Note: test-ok.sh is a minimized version of the original orig.build-and-test-succeeds.sh script, succeeds just like the original, more verbose version.

This build script runs xcodebuild build test. It takes just as long as the previous script to execute, but the iPhoneSimulator does not time out waiting to boot. Instead, the tests launch and run successfully.

simulator-launch-timeout-includes-build-time's People

Contributors

viktorbenei avatar

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.