-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test: Separate Detox build from test execution #7897
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
6ad968f
to
37f13f7
Compare
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7897 +/- ##
=======================================
Coverage 37.92% 37.92%
=======================================
Files 1140 1140
Lines 29196 29196
Branches 2746 2746
=======================================
Hits 11074 11074
Misses 17478 17478
Partials 644 644 ☔ View full report in Codecov by Sentry. |
a9b520c
to
50cabc2
Compare
6f97904
to
7b3ec0a
Compare
7b3ec0a
to
f5b502f
Compare
68a7135
to
089a912
Compare
e3ab0de
to
b62aa41
Compare
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/bb021668-0473-4461-bc98-f6b71f53cd33 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I was able to branch off and understand the implementation better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on the build-test split and smart caching! I added questions but just curious me, not required for approval.
Kudos, SonarCloud Quality Gate passed! |
Description
This PR aims to split the detox build and test execution in different steps on Bitrise.
It was necessary to split the commands for ios
test:e2e:ios:bitrise:build
/test:e2e:ios:bitrise:run
and androidtest:e2e:android:bitrise:build
/test:e2e:android:bitrise:run
.To reuse
node_modules
,yarn.lock
andbuild outputs
it was introduced save-cache because it supports key-based caching in addition to save-gradle-cache.The previous
android/ios_e2e_test
was split accordingly intoandroid/ios_e2e_build
where the dependencies and build are prepared and those outputs saved into the cache, andandroid/ios_e2e_test
is where those caches are restored, the test is executed and saves the reports or screenshots in case of failure.Benefits
yarn.lock
.Limitations
Related issues
Fixes: https://github.com/MetaMask/mobile-planning/issues/1311
Manual testing steps
pr_smoke_e2e_pipeline
SMOKE
Pipeline without cache: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0a971976-089b-4530-a10e-fe86ae1af1eb
Pipeline when build is cached: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/bb021668-0473-4461-bc98-f6b71f53cd33
RECRESSION
Pipeline without cache: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5a5d101a-bfa8-4931-88d2-bf7f0b3a11f0
Pipeline: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0a971976-089b-4530-a10e-fe86ae1af1eb
Screenshots/Recordings
After
Pre-merge author checklist
Pre-merge reviewer checklist