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
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,9 @@ To see all configurable options for coverage, see the [coverage Config Reference
169
169
170
170
Since Vitest 0.31.0, you can check your coverage report in [Vitest UI](./ui).
171
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.
172
+
Vitest UI will enable coverage report when it is enabled explicitly and the html coverage reporter is present, otherwise it will not be available:
173
+
- enable `coverage.enabled=true` in your configuration or run Vitest with `--coverage.enabled=true` flag
174
+
- add `html` to the `coverage.reporters` list: you can also enable `subdir` option to put coverage report in a subdirectory
173
175
174
176
<img alt="html coverage activation in Vitest UI" img-light src="/vitest-ui-show-coverage-light.png">
175
177
<img alt="html coverage activation in Vitest UI" img-dark src="/vitest-ui-show-coverage-dark.png">
0 commit comments