File tree Expand file tree Collapse file tree 4 files changed +6727
-4961
lines changed Expand file tree Collapse file tree 4 files changed +6727
-4961
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,35 @@ jobs:
248
248
avd-name : ${{ steps.device.outputs.AVD_NAME }}
249
249
emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -grpc 8554
250
250
script : yarn test:e2e android.emu.release --headless --take-screenshots failing --record-videos failing
251
+
252
+ - name : Upload results to Currents.dev
253
+ if : ${{ ! cancelled() }}
254
+ env :
255
+ CURRENTS_PROJECT_ID : 4ytF0E
256
+ CURRENTS_RECORD_KEY : ${{ secrets.CURRENTS_RECORD_KEY }}
257
+ working-directory : ./suite-native/app
258
+ run : |
259
+ npx currents convert \
260
+ --input-format=junit \
261
+ --input-file=./reports/junit-report.xml \
262
+ --output-dir=./currents \
263
+ --framework=postman \
264
+ --framework-version=v11.2.0
265
+ npx currents upload --project-id=${CURRENTS_PROJECT_ID} --key=${CURRENTS_RECORD_KEY} --report-dir ./currents
266
+
267
+ - name : " Store junit reports"
268
+ if : ${{failure()}}
269
+ uses : actions/upload-artifact@v4
270
+ with :
271
+ name : junit-report
272
+ path : suite-native/app/reports
273
+
274
+ - name : " Store currents reports"
275
+ if : ${{failure()}}
276
+ uses : actions/upload-artifact@v4
277
+ with :
278
+ name : currents-report
279
+ path : suite-native/app/currents
251
280
252
281
- name : " Store failed test screenshot artifacts"
253
282
if : ${{failure()}}
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ module.exports = {
7
7
testTimeout : 120000 ,
8
8
globalSetup : 'detox/runners/jest/globalSetup' ,
9
9
globalTeardown : 'detox/runners/jest/globalTeardown' ,
10
- reporters : [ 'detox/runners/jest/reporter' ] ,
10
+ reporters : [
11
+ 'detox/runners/jest/reporter' ,
12
+ [ "jest-junit" , { outputDirectory : "./reports" , outputName : "junit-report.xml" } ]
13
+ ] ,
11
14
testEnvironment : 'detox/runners/jest/testEnvironment' ,
12
15
verbose : true ,
13
16
maxWorkers : 1 ,
Original file line number Diff line number Diff line change 126
126
"@babel/core" : " ^7.20.0" ,
127
127
"@babel/plugin-transform-export-namespace-from" : " ^7.23.4" ,
128
128
"@config-plugins/detox" : " ^8.0.0" ,
129
+ "@currents/cmd" : " ^1.6.0" ,
129
130
"@react-native-community/cli" : " ^15.1.2" ,
130
131
"@react-native/babel-preset" : " ^0.75.2" ,
131
132
"@suite-common/test-utils" : " workspace:^" ,
137
138
"detox" : " ^20.25.6" ,
138
139
"expo-atlas" : " 0.3.27" ,
139
140
"jest" : " ^29.7.0" ,
141
+ "jest-junit" : " ^16.0.0" ,
140
142
"metro" : " 0.81.0" ,
141
143
"ts-jest" : " ^29.1.2" ,
142
144
"typescript" : " ^5.3.3"
You can’t perform that action at this time.
0 commit comments