-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: fix ui mode / html reporter and coverage integration #9626
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
Open
hi-ogawa
wants to merge
25
commits into
vitest-dev:main
Choose a base branch
from
hi-ogawa:02-10-chore_repro-6945
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+144
−169
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3052f49
chore: repro-6945
hi-ogawa b358c39
chore: 🚨
hi-ogawa ca6cfa8
chore: cleanup
hi-ogawa e0b7001
feat: add coverage.htmlDir config
hi-ogawa f030606
refactor: use coverage.htmlDir and standardize on /coverage path
hi-ogawa c7d88b6
Merge branch 'main' into 02-10-chore_repro-6945
hi-ogawa 890b981
chore: todo
hi-ogawa a4ede98
chore: todo
hi-ogawa 9e08747
feat: use relative ./coverage
hi-ogawa 22aabd6
fix: add HTMLReporter.onFinishedReportCoverage
hi-ogawa 6cdb01a
refactor: hard-code ./coverage/index.html in ui
hi-ogawa 9a36af6
refactor: remove stale SerializedCoverageConfig.htmlReporeter
hi-ogawa eb4d205
chore: comment
hi-ogawa c9c1298
test: test htmlDir default
hi-ogawa 11584d4
fix: support lcov
hi-ogawa 751ab17
fix: fix resolve
hi-ogawa 242ffb4
test: deafult should work
hi-ogawa 9e9550f
chore: browser ui not working?
hi-ogawa b1d2eec
fix: browser coverage ui in orchestrator
hi-ogawa 07ca0c7
docs: update coverage docs for new htmlDir option and UI integration
hi-ogawa c338b2a
chore: remove examples/repro-6945
hi-ogawa ef74e62
fix: use relative path for attachment URLs to support subpath deployment
hi-ogawa b668169
test: test html reporter with custom base deployment
hi-ogawa 5ad3a71
Merge branch 'main' into 02-10-chore_repro-6945
hi-ogawa 5859bd4
fix: support html-spa
hi-ogawa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reportCoveragehappens afteronTestRunEnd, so now HTML reporter also needs this to be able to collect coverage html.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AriPerkkio that's why I wanted
onCoverageas a separate hook, by the way. We have it, but it's coupled toonTestRunEnd