Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up better test reporting #554

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ jobs:
run: npm run check

- name: Run Playwright tests
run: npm test -- --reporter=html
run: npm test

- uses: actions/upload-artifact@v3
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Upload test results
run: npx github-actions-ctrf ctrf/ctrf-report.json
if: always()
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
target/
pkg/
node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
dist
src/style/main.css
src/style/main.css.map
Expand All @@ -13,3 +10,4 @@ public/assets
public/layers
public/private_layers
backend/app.yaml
ctrf
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@types/node": "^20.11.17",
"@types/uuid": "^9.0.8",
"playwright": "^1.41.2",
"playwright-ctrf-json-reporter": "^0.0.18",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.1.2",
"sass": "^1.70.0",
Expand Down
1 change: 1 addition & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export default defineConfig({
port: 8080,
reuseExistingServer: !process.env.CI,
},
reporter: [["list"], ["playwright-ctrf-json-reporter", {}]],
});