Skip to content

test: write the Vitest HTML report only on request - #1297

Merged
plum117 merged 1 commit into
webdriverio:mainfrom
plum117:test/vitest-html-reporter
Oct 9, 2026
Merged

plum117 merged 1 commit into
webdriverio:mainfrom
plum117:test/vitest-html-reporter

Conversation

@plum117

@plum117 plum117 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The Vitest html reporter ran on every unit test run, also in CI, and wrote a report of several MB to .vitest-ui/ that nobody opened there. It now runs only on request.

Changes

  • vitest.config.ts: the html reporter is added only when VITEST_HTML_REPORT=true; otherwise only the default reporter runs.
  • New script test:unit:report (cross-env VITEST_HTML_REPORT=true vitest --coverage --run) writes the static report to .vitest-ui/ as before.
  • test:unit:ui (the live Vitest UI) does not need the html reporter and does not change.

Test

  • pnpm test:unit: 1079 tests pass, no .vitest-ui/ folder.
  • pnpm test:unit:report: writes .vitest-ui/index.html; no .vitest/ folder.

🤖 Generated with Claude Code

The html reporter ran on every unit test run, also in CI, and wrote a
report of several MB to .vitest-ui/ that nobody opened there. It now
runs only with the new test:unit:report script. test:unit:ui (the live
Vitest UI) does not need it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: acfa18b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@plum117
plum117 marked this pull request as ready for review October 9, 2026 02:08
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Makes the static Vitest HTML report optional.

  • Vitest writes the static HTML report only when asked.

No actionable issues were found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "test: write the Vitest HTML report only ..." · Reviewed by Greptile

@plum117
plum117 merged commit ad0f0d9 into webdriverio:main Oct 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants