Skip to content

Commit

Permalink
test(suite-native): e2e: use jest retry mechanism over detox
Browse files Browse the repository at this point in the history
  • Loading branch information
PeKne committed Oct 4, 2024
1 parent 0b8aab4 commit 112b9d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-suite-native-e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ jobs:
force-avd-creation: true
avd-name: ${{ steps.device.outputs.AVD_NAME }}
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -grpc 8554
script: yarn test:e2e android.emu.release --headless --take-screenshots failing --record-videos failing --retries 2
script: yarn test:e2e android.emu.release --headless --take-screenshots failing --record-videos failing

- name: "Store failed test screenshot artifacts"
if: ${{failure()}}
uses: actions/upload-artifact@v4
with:
name: failed-android-tests-screenshots
name: failed-android-tests
path: suite-native/app/artifacts
1 change: 1 addition & 0 deletions suite-native/app/e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ module.exports = {
testEnvironment: 'detox/runners/jest/testEnvironment',
verbose: true,
maxWorkers: 1,
setupFilesAfterEnv: ['<rootDir>/e2e/jest.setup.ts'],
};
1 change: 1 addition & 0 deletions suite-native/app/e2e/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jest.retryTimes(2);

0 comments on commit 112b9d9

Please sign in to comment.