Skip to content

Commit 383ea67

Browse files
authored
👷 Export test reports on front-ends
1 parent 17abc03 commit 383ea67

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

.circleci/config.yml

+30
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,14 @@ jobs:
368368
name: Lint
369369
command: npm run lint
370370
- run:
371+
environment:
372+
RESULTS_PATH: ../../test-results/mon_pix
371373
name: Test
372374
command: npm run test:ci
375+
- store_test_results:
376+
path: /home/circleci/test-results/mon_pix
377+
- store_artifacts:
378+
path: /home/circleci/test-results/mon_pix
373379

374380
orga_build_and_test:
375381
executor:
@@ -392,8 +398,14 @@ jobs:
392398
name: Lint
393399
command: npm run lint
394400
- run:
401+
environment:
402+
RESULTS_PATH: ../../test-results/orga
395403
name: Test
396404
command: npm run test:ci
405+
- store_test_results:
406+
path: /home/circleci/test-results/orga
407+
- store_artifacts:
408+
path: /home/circleci/test-results/orga
397409

398410
pix1d_build_and_test:
399411
executor:
@@ -416,8 +428,14 @@ jobs:
416428
name: Lint
417429
command: npm run lint
418430
- run:
431+
environment:
432+
RESULTS_PATH: ../../test-results/pix1d
419433
name: Test
420434
command: npm run test:ci
435+
- store_test_results:
436+
path: /home/circleci/test-results/pix1d
437+
- store_artifacts:
438+
path: /home/circleci/test-results/pix1d
421439

422440
certif_build_and_test:
423441
executor:
@@ -440,8 +458,14 @@ jobs:
440458
name: Lint
441459
command: npm run lint
442460
- run:
461+
environment:
462+
RESULTS_PATH: ../../test-results/certif
443463
name: Test
444464
command: npm run test:ci
465+
- store_test_results:
466+
path: /home/circleci/test-results/certif
467+
- store_artifacts:
468+
path: /home/circleci/test-results/certif
445469

446470
admin_build_and_test:
447471
executor:
@@ -464,8 +488,14 @@ jobs:
464488
name: Lint
465489
command: npm run lint
466490
- run:
491+
environment:
492+
RESULTS_PATH: ../../test-results/admin
467493
name: Test
468494
command: npm run test:ci
495+
- store_test_results:
496+
path: /home/circleci/test-results/admin
497+
- store_artifacts:
498+
path: /home/circleci/test-results/admin
469499

470500
e2e_test_app:
471501
executor:

1d/testem.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ module.exports = process.env.CI
2525
? {
2626
...config,
2727
reporter: 'xunit',
28+
report_file: `${process.env.RESULTS_PATH ?? '.'}/report.xml`,
2829
}
2930
: config;

admin/testem.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ module.exports = process.env.CI
2424
? {
2525
...config,
2626
reporter: 'xunit',
27+
report_file: `${process.env.RESULTS_PATH ?? '.'}/report.xml`,
2728
}
2829
: config;

certif/testem.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ module.exports = process.env.CI
2525
? {
2626
...config,
2727
reporter: 'xunit',
28+
report_file: `${process.env.RESULTS_PATH ?? '.'}/report.xml`,
2829
}
2930
: config;

orga/testem.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ module.exports = process.env.CI
2424
? {
2525
...config,
2626
reporter: 'xunit',
27+
report_file: `${process.env.RESULTS_PATH ?? '.'}/report.xml`,
2728
}
2829
: config;

0 commit comments

Comments
 (0)