Skip to content

Commit

Permalink
Make playwright publish a JUnit report
Browse files Browse the repository at this point in the history
  • Loading branch information
sabberworm committed Nov 19, 2024
1 parent f76a88e commit 33b8d1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- uses: mikepenz/action-junit-report@v5
if: ${{ !cancelled() }}
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
report_paths: '**/build/**/TEST-*.xml'
5 changes: 4 additions & 1 deletion configs/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ async function loadConfig(): Promise<PlaywrightTestConfig> {
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [['html', { open: process.env.CI ? 'never' : 'on-failure', outputFolder: outputDir }]],
reporter: [
['html', { open: process.env.CI ? 'never' : 'on-failure', outputFolder: outputDir }],
['junit', { outputFile: `${outputDir}/TEST-playwright.xml` }],
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down

0 comments on commit 33b8d1d

Please sign in to comment.