Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Core tests not running on iOS on CI #6423

Open

Description

@1ec5

Along with removing the macOS SDK unit tests (#5991), #5359 also removed the core tests from the iOS test rule. On CI, we’re still installing ios-sim but not using it anywhere. We should be running the core tests on iOS, one of the officially supported platforms.

/cc @jfirebaugh @kkaefer

Activity

  1. added
    iOS
    on Sep 22, 2016
  2. added this to the ios-v3.4.0 milestone on Sep 22, 2016
  3. self-assigned this
    on Sep 22, 2016
  4. self-assigned this
    on Sep 28, 2016
  5. 1ec5 commented on Sep 28, 2016

    @1ec5
    ContributorAuthor

    This is apparently blocked by ios-control/ios-sim#196.

  6. boundsj commented on Sep 28, 2016

    @boundsj
    Contributor

    Unfortunately our ios-sim does not appear to work with Xcode 8. I'm getting the error: Failed to find class DTiPhoneSimulatorSystemRoot at runtime. I'm going to take this off the 3.4.0 milestone and we can come back to it when there is more time and/or something moves in one of the ios-sim projects (i.e. ios-control/ios-sim#196)

  7. modified the milestones: ios-v3.4.0, ios-future on Sep 28, 2016
  8. boundsj commented on Sep 28, 2016

    @boundsj
    Contributor

    Additional context for when we pick this up again:

    A previous version of the Makefile used to run ios-sim launch $(IOS_OUTPUT_PATH)/Build/Products/$(BUILDTYPE)-iphonesimulator/ios-test.app --verbose --devicetypeid 'com.apple.CoreSimulator.SimDeviceType.iPhone-6,9.3' which corresponds to mbgl-test. This issue is to add back a rule to run that app in the Makefile and also as a step in the ios bitrise configuration.

  9. jfirebaugh commented on Sep 28, 2016

    @jfirebaugh
    Contributor

    Supposedly it's possible to accomplish what we do with ios-sim via xcrun simctl commands, but the thing is not documented in any meaningful way, and neither @1ec5 nor I could figure out the right incantations.

  10. jfirebaugh commented on Sep 28, 2016

    @jfirebaugh
    Contributor

    For posterity, some back-and-forth on radar issues I filed about simctl:

    image

    image

  11. jfirebaugh commented on Oct 6, 2016

    @jfirebaugh
    Contributor

    They're not being run on macOS either, which is why we didn't catch #6579 (comment).

  12. jfirebaugh commented on Oct 6, 2016

    @jfirebaugh
    Contributor

    Restored to macOS in 388fa9c.

  13. removed their assignment
    on Aug 21, 2017
  14. friedbunny commented on Sep 26, 2017

    @friedbunny
    Contributor

    ios-sim was vestigial since #5359 and is being removed in #10070.

  15. 1ec5 commented on Oct 3, 2017

    @1ec5
    ContributorAuthor

    Supposedly it's possible to accomplish what we do with ios-sim via xcrun simctl commands, but the thing is not documented in any meaningful way, and neither @1ec5 nor I could figure out the right incantations.

    This command sends the application’s stdout to the console, but the return value is always 0 as long as the application successfully launches, even if the exit code is nonzero:

    xcrun simctl install booted /path/to/mapbox-gl-native/build/ios/Debug-iphonesimulator/core-test.app
    xcrun simctl launch --console booted 'com.mapbox.core-test'
  16. 1ec5 commented on Oct 3, 2017

    @1ec5
    ContributorAuthor

    I suppose we can pipe stdout to another command that checks for signs of failure, similar to how xctool and xcpretty work.

  17. added
    archived
    on May 13, 2019
  18. stale commented on May 13, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  19. removed
    archived
    on May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildiOStests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions