You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/guide/coverage.md
+12
Original file line number
Diff line number
Diff line change
@@ -164,3 +164,15 @@ if (condition) {
164
164
## Other Options
165
165
166
166
To see all configurable options for coverage, see the [coverage Config Reference](https://vitest.dev/config/#coverage).
167
+
168
+
## Vitest UI
169
+
170
+
Since Vitest 0.31.0, you can check your coverage report in [Vitest UI](./ui).
171
+
172
+
If you have configured coverage reporters, don't forget to add `html` reporter to the list, Vitest UI will only enable html coverage report if it is present.
173
+
174
+
<img alt="html coverage activation in Vitest UI" img-light src="/vitest-ui-show-coverage-light.png">
175
+
<img alt="html coverage activation in Vitest UI" img-dark src="/vitest-ui-show-coverage-dark.png">
176
+
177
+
<img alt="html coverage in Vitest UI" img-light src="/vitest-ui-coverage-light.png">
178
+
<img alt="html coverage in Vitest UI" img-dark src="/vitest-ui-coverage-dark.png">
Copy file name to clipboardexpand all lines: docs/guide/ui.md
+2
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ export default {
34
34
}
35
35
```
36
36
37
+
Since Vitest 0.31.0, you can check your coverage report in Vitest UI: check [Vitest UI Coverage](/guide/coverage#vitest-ui) for more details.
38
+
37
39
::: warning
38
40
If you still want to see how your tests are running in real time in the terminal, don't forget to add `default` reporter to `reporters` option: `['default', 'html']`.
0 commit comments