Skip to content

Commit 2e07a63

Browse files
committed
chore: 🤖 add junit report generation to e2e tests
1 parent 2c8d433 commit 2e07a63

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

‎e2e-tests/.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
admin/artifacts
33
desktop/artifacts
44
playwright-report
5+
admin/test-reports
6+
desktop/test-reports
57

68
.auth

‎e2e-tests/admin/playwright.config.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ export default defineConfig({
1212
outputDir: './artifacts/test-failures',
1313
timeout: 90000, // Each test is given 90s to complete
1414
workers: 1, // Tests need to be run in serial, otherwise there may be conflicts when using the CLI
15+
reporter: [
16+
['list'],
17+
process.env.CREATE_JUNIT_TEST_REPORT === 'true'
18+
? ['junit', { outputFile: 'test-reports/junit.xml' }]
19+
: null,
20+
].filter(Boolean),
1521
use: {
1622
baseURL: baseUrl,
1723
extraHTTPHeaders: {

‎e2e-tests/desktop/playwright.config.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export default defineConfig({
99
globalSetup: '../global-setup',
1010
outputDir: './artifacts',
1111
workers: 1, // Tests need to be run in serial, otherwise there may be conflicts when using the CLI
12+
reporter: [
13+
['list'],
14+
process.env.CREATE_JUNIT_TEST_REPORT === 'true'
15+
? ['junit', { outputFile: 'test-reports/junit.xml' }]
16+
: null,
17+
].filter(Boolean),
1218
use: {
1319
baseURL: process.env.BOUNDARY_ADDR,
1420
extraHTTPHeaders: {

0 commit comments

Comments
 (0)