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.

Get tests to work on iOS/Android #2150

Closed

Description

@kkaefer

We should run all available test suites on each platform.

Platform Core tests Rendering tests Platform tests
Android ✘ #4671 ✘ #2488 ✔︎
iOS ✔︎ (Regressed) ✘ #2488 ✘ #4495, #2734, etc.
OS X ✔︎ ✘ #2488 ✔︎
Linux ✔︎ ✘ #2488 n/a
Node OS X n/a ✔︎ ✔︎
Node Linux n/a ✔︎ ✔︎

Activity

  1. added
    iOS
    Android
    on Aug 25, 2015
  2. ljbade commented on Aug 25, 2015

    @ljbade
    Contributor

    On Android side there have been a few tickets in this area: #1667

  3. ljbade commented on Sep 7, 2015

    @ljbade
    Contributor

    And #1898

  4. tobrun commented on Jan 11, 2016

    @tobrun
    Member

    Closing this down because we have UI testing frameworks for both platforms:

    • Espresso on Android
    • KIF on iOS
  5. jfirebaugh commented on Jan 11, 2016

    @jfirebaugh
    Contributor

    Technically this is still relevant: in a perfect world we would run the headless rendering tests on every platform. It's low priority / not actionable right now though.

  6. tobrun commented on Jan 11, 2016

    @tobrun
    Member

    @jfirebaugh on Android we have Unit tests using JUnit, these are executed on each commit to this repo.
    Coverage is not that high but we are working on this to improve.

    @1ec5 / @friedbunny does iOS have this?

  7. friedbunny commented on Jan 11, 2016

    @friedbunny
    Contributor

    iOS only has functionality tests, using KIF.

  8. kkaefer commented on Jan 12, 2016

    @kkaefer
    MemberAuthor

    @tobrun KIF/JUnit are running integration tests. This issue is about unit tests, that independently test parts of the system. Integration tests may not cover everything tested by unit tests (and vice versa).

  9. 1ec5 commented on Jan 12, 2016

    @1ec5
    Contributor

    As of #3406, a little of the code shared between the iOS and OS X SDKs is being unit tested (in the strict sense of the word) on OS X. However, this issue sounds like it’s about the rendering and mbgl tests, which currently rely on gtest. Is gtest compatibility with iOS even feasible?

  10. tmpsantos commented on Feb 12, 2016

    @tmpsantos
    Contributor

    Running at least the test/storage tests would be extremely recommended and should be the priority, as these will test the platform specific network backend.

    There are several corner cases that must be handled by the network backend that if not implemented correctly can interfere with the cache operation, rendering of stale tiles, etc. They are all covered by the tests.

    /cc @tobrun

  11. jfirebaugh commented on Feb 12, 2016

    @jfirebaugh
    Contributor

    I started trying to do this in android-tests. It's difficult because the tests are currently a monolithic thing which requires a full headless implementation for whatever platform they're running on. We may need to split them (and the mbgl-core library they link against) into a part that relies on GL and a part with minimal dependencies.

  12. jfirebaugh commented on Mar 23, 2016

    @jfirebaugh
    Contributor

    In #3989 we have a test scheme for the iOS Xcode project which runs most (but not all) of the core unit tests. Getting it to actually run successfully in a CI environment is challenging however, and hasn't been tackled yet.

  13. jfirebaugh commented on Apr 1, 2016

    @jfirebaugh
    Contributor

    As of #4560 we run rendering tests on the OS X Bitrise Node build.

  14. added
    archived
    on Nov 17, 2018
  15. stale commented on Nov 23, 2018

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

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

    AndroidarchivediOStests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions