Skip to content

Commit

Permalink
feat(e2e): Added currents reporter to Suite lite e2e tests (#15826)
Browse files Browse the repository at this point in the history
  • Loading branch information
HajekOndrej authored Dec 10, 2024
1 parent f95983d commit 479fcff
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 32 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test-suite-native-e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,21 @@ jobs:
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

- name: Upload results to Currents.dev
if: ${{ ! cancelled() }}
env:
CURRENTS_PROJECT_ID: iUe1Y4
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
working-directory: ./suite-native/app
run: |
npx currents convert \
--input-format=junit \
--input-file=./reports/junit-report.xml \
--output-dir=./currents \
--framework=postman \
--framework-version=v11.2.0
npx currents upload --project-id=${CURRENTS_PROJECT_ID} --key=${CURRENTS_RECORD_KEY} --report-dir ./currents
- name: "Store failed test screenshot artifacts"
if: ${{failure()}}
Expand Down
4 changes: 3 additions & 1 deletion scripts/list-outdated-dependencies/qa-dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ cypress-image-snapshot
cypress-real-events
@currents/playwright
@types/cypress-image-snapshot
eslint-plugin-cypress
eslint-plugin-cypress
@currents/cmd
jest-junit
5 changes: 4 additions & 1 deletion suite-native/app/e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ module.exports = {
testTimeout: 120000,
globalSetup: 'detox/runners/jest/globalSetup',
globalTeardown: 'detox/runners/jest/globalTeardown',
reporters: ['detox/runners/jest/reporter'],
reporters: [
'detox/runners/jest/reporter',
['jest-junit', { outputDirectory: './reports', outputName: 'junit-report.xml' }],
],
testEnvironment: 'detox/runners/jest/testEnvironment',
verbose: true,
maxWorkers: 1,
Expand Down
2 changes: 2 additions & 0 deletions suite-native/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"@babel/core": "^7.20.0",
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
"@config-plugins/detox": "^8.0.0",
"@currents/cmd": "^1.6.0",
"@react-native-community/cli": "^15.1.2",
"@react-native/babel-preset": "^0.75.2",
"@suite-common/test-utils": "workspace:^",
Expand All @@ -137,6 +138,7 @@
"detox": "^20.25.6",
"expo-atlas": "0.3.27",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"metro": "0.81.0",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
Expand Down
Loading

0 comments on commit 479fcff

Please sign in to comment.