Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAT-8506] Local watchOS E2E testing #1398

Merged
merged 5 commits into from
Jun 8, 2022

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Jun 1, 2022

Goal

Make it possible to run E2E scenarios on Apple Watch.

Scope

Allows running the barebone_tests on watchOS.

Design

Launches the fixture using Xcode 13's xcdebug command-line tool.

The --environment option does not seem to work, so maze runner's host name needs to be compiled into the fixture. The Makefile takes care of this by inserting the computer's IP address.

Changeset

Adds a watchOS fixture - watchOSTestApp in features/fixtures/watchos

Amends features/barebone_tests.feature to be compatible with watchOS.

BareboneTestUnhandledErrorScenario has been changed to an uncaught NSException because it's not possible to detect Swift fatal errors.

Testing

Run the tests with make e2e_watchos

An iPhone with paired Apple Watch must be connected and available in Xcode's devices window.

See TESTING.md

@nickdowell nickdowell changed the title Local watchOS E2E testing [PLAT-8506 ] Local watchOS E2E testing Jun 1, 2022
@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Bugsnag.framework binary size did not change - 814,440 bytes

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  [ = ]       0  [ = ]       0    TOTAL

Generated by 🚫 Danger

@nickdowell nickdowell changed the title [PLAT-8506 ] Local watchOS E2E testing [PLAT-8506] Local watchOS E2E testing Jun 1, 2022
@nickdowell nickdowell requested review from twometresteve and kstenerud and removed request for twometresteve June 1, 2022 15:56
@nickdowell nickdowell marked this pull request as ready for review June 6, 2022 13:37
Copy link
Contributor

@twometresteve twometresteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test/CI approach looks good to me, but could we have something in TESTING.md detailing how to run the tests on watchOS (and to some extent advertise that it's possible)?

features/steps/app_steps.rb Outdated Show resolved Hide resolved
@nickdowell nickdowell merged commit 75d24e7 into integration/watchos Jun 8, 2022
@nickdowell nickdowell deleted the nickdowell/watchos-e2e branch June 8, 2022 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants