Skip to content

Commit 5b69cae

Browse files
authored
chore(e2e): add junit test report (#1562)
1 parent 736a151 commit 5b69cae

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/springwolf-plugins.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ jobs:
7373
run: ./gradlew -p springwolf-examples/e2e pnpm_run_install_deps test
7474
env:
7575
SPRINGWOLF_EXAMPLE: ${{ matrix.plugin }}
76+
- name: Publish Test Report (e2e)
77+
uses: mikepenz/action-junit-report@v6
78+
if: success() || failure()
79+
with:
80+
check_name: test-plugin-${{ matrix.plugin }}-e2e
81+
require_tests: true
82+
report_paths: '**/test-results/junit.xml'
7683
- uses: actions/upload-artifact@v5
7784
if: always()
7885
with:

springwolf-examples/e2e/playwright.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export default defineConfig({
2121
/* Opt out of parallel tests on CI. */
2222
workers: process.env.CI ? 1 : undefined,
2323
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
24-
reporter: 'html',
24+
reporter: [
25+
[process.env.CI ? 'github' : 'html'],
26+
['junit', { outputFile: 'test-results/junit.xml' }]
27+
],
2528
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2629
use: {
2730
/* Base URL to use in actions like `await page.goto('/')`. */

0 commit comments

Comments
 (0)