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

feat(ui): add html coverage #3071

Merged
merged 20 commits into from May 3, 2023
Merged

Conversation

userquin
Copy link
Member

@userquin userquin commented Mar 23, 2023

The iframe will be shown as it is, dark mode will not change the styles: IIRC we cannot change the styles from outside, maybe I can try to intercept the index.html adding a new css.

There is a problem initializing the UIPlugin, it seems the coverage configuration isn't available, I've configured the defaults (Vitest context initilize logic to resolve reportsDirectory).

EDIT: to test html coverage, run pnpm vitest --open --ui --coverage.enabled=true from test/core folder and once Vitest has been built.

https://streamable.com/whue6m

supersedes #2364
closes #2336

@userquin
Copy link
Member Author

upps: snapshots changed, should revert changes?

@sheremet-va
Copy link
Member

upps: snapshots changed, should revert changes?

It's fine.

Your UI tests failed, what is going on there?

packages/ui/node/index.ts Outdated Show resolved Hide resolved
packages/ui/node/index.ts Show resolved Hide resolved
@userquin
Copy link
Member Author

Your UI tests failed, what is going on there?

I have no idea, test are passing on my local.

@userquin
Copy link
Member Author

userquin commented Mar 29, 2023

LICENSE.md file gets updated

@sheremet-va
Copy link
Member

@userquin can you rebase this last time and remove the LICENSE file?

@sheremet-va
Copy link
Member

Seems like tests are failing. Also is it possible to remove changes to lockfile? I don't think you've added any packages or changed their versions to change it, it only causes conflicts. I recommend using --frozen-lockfile when installing dependencies.

Comment on lines +46 to +48
"peerDependencies": {
"vitest": ">=0.30.1 <1"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this makes the feature a breaking change - which is OK, but should be indicated in release notes. Maybe even in the PR description here.

@userquin
Copy link
Member Author

userquin commented Apr 28, 2023

Moving hint to the right, the hint should be present in the same place coverage button, also adding cursor-help (it is not a button):

imagen

imagen

docs/guide/ui.md Outdated Show resolved Hide resolved
docs/config/index.md Outdated Show resolved Hide resolved
@sheremet-va sheremet-va merged commit e24cd9b into main May 3, 2023
17 checks passed
@sheremet-va sheremet-va deleted the userquin/feat-ui-add-html-coverage branch May 3, 2023 09:23
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.

Coverage viewer in Vitest UI
3 participants