Skip to content

Commit

Permalink
test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Oct 22, 2023
1 parent 75e1a5b commit 840192c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
wallets/metamask/test-results-headless/
if-no-files-found: error

- name: Archive Playwright report
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: playwright-report-headless
path: |
wallets/metamask/playwright-report-headless/
if-no-files-found: error

test-e2e-headful:
name: Run E2E tests (headful)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -86,3 +95,12 @@ jobs:
path: |
wallets/metamask/test-results-headful/
if-no-files-found: error

- name: Archive Playwright report
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: playwright-report-headful
path: |
wallets/metamask/playwright-report-headful/
if-no-files-found: error
2 changes: 1 addition & 1 deletion wallets/metamask/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({

// Concise 'dot' for CI, default 'html' when running locally.
// See https://playwright.dev/docs/test-reporters.
reporter: process.env.CI ? 'dot' : 'html',
reporter: process.env.CI ? [['html', { open: 'never', outputFolder: `playwright-report-${process.env.HEADLESS ? 'headless' : 'headed'}` }]] : 'html',

// Shared settings for all the projects below.
// See https://playwright.dev/docs/api/class-testoptions.
Expand Down

0 comments on commit 840192c

Please sign in to comment.