Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: improve test count extraction reliability in CI
- Use separate --reporter flags for list, html, and json
- Set PLAYWRIGHT_JSON_OUTPUT_NAME env var to specify JSON output path
- Run HTML and JSON report generation separately for merged reports
- Ensures report.json is created in playwright-report directory

The combined reporter syntax wasn't creating the JSON file properly.
Using separate reporter flags with env var ensures JSON is generated.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
  • Loading branch information
snomiao and claude committed Sep 10, 2025
commit fcc8d88364095ae4aee892967ab5b63101007581
17 changes: 11 additions & 6 deletions .github/workflows/test-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,12 @@ jobs:
- name: Run Playwright tests (${{ matrix.browser }})
id: playwright
run: |
npx playwright test --project=${{ matrix.browser }} --reporter=html,json
# JSON report is saved to test-results.json by default, move it to the report directory
[ -f "test-results.json" ] && mv test-results.json playwright-report/report.json || true
# Run tests with both HTML and JSON reporters
PLAYWRIGHT_JSON_OUTPUT_NAME=playwright-report/report.json \
npx playwright test --project=${{ matrix.browser }} \
--reporter=list \
--reporter=html \
--reporter=json
working-directory: ComfyUI_frontend

- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -279,9 +282,11 @@ jobs:

- name: Merge into HTML Report
run: |
npx playwright merge-reports --reporter=html,json ./all-blob-reports
# JSON report is saved to test-results.json by default, move it to the report directory
[ -f "test-results.json" ] && mv test-results.json playwright-report/report.json || true
# Generate HTML report
npx playwright merge-reports --reporter=html ./all-blob-reports
# Generate JSON report separately with explicit output path
PLAYWRIGHT_JSON_OUTPUT_NAME=playwright-report/report.json \
npx playwright merge-reports --reporter=json ./all-blob-reports
working-directory: ComfyUI_frontend

- name: Upload HTML report
Expand Down
Loading