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/config/index.md
+20-51
Original file line number
Diff line number
Diff line change
@@ -667,10 +667,6 @@ Isolate environment for each test file. Does not work if you disable [`--threads
667
667
668
668
You can use [`v8`](https://v8.dev/blog/javascript-code-coverage), [`istanbul`](https://istanbul.js.org/) or [a custom coverage solution](/guide/coverage#custom-coverage-provider) for coverage collection.
669
669
670
-
::: info
671
-
The `c8` provider is being replaced by the `v8` provider. It will be deprecated in the next major version.
672
-
:::
673
-
674
670
You can provide coverage options to CLI with dot notation:
675
671
676
672
```sh
@@ -683,7 +679,7 @@ If you are using coverage options with dot notation, don't forget to specify `--
683
679
684
680
#### coverage.provider
685
681
686
-
-**Type:**`'c8' | 'v8' | 'istanbul' | 'custom'`
682
+
-**Type:**`'v8' | 'istanbul' | 'custom'`
687
683
-**Default:**`'v8'`
688
684
-**CLI:**`--coverage.provider=<provider>`
689
685
@@ -693,7 +689,7 @@ Use `provider` to select the tool for coverage collection.
693
689
694
690
-**Type:**`boolean`
695
691
-**Default:**`false`
696
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
Coverage reporters to use. See [istanbul documentation](https://istanbul.js.org/docs/advanced/alternative-reporters/) for detailed list of all reporters. See [`@types/istanbul-reporter`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/276d95e4304b3670eaf6e8e5a7ea9e265a14e338/types/istanbul-reports/index.d.ts) for details about reporter specific options.
@@ -805,7 +801,7 @@ Since Vitest 0.31.0, you can check your coverage report in Vitest UI: check [Vit
805
801
806
802
-**Type:**`boolean`
807
803
-**Default:**`false` (since Vitest `0.34.0`)
808
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
Update threshold values `lines`, `functions`, `branches` and `statements` to configuration file when current coverage is above the configured thresholds.
@@ -843,7 +839,7 @@ This option helps to maintain thresholds when coverage is improved.
843
839
#### coverage.lines
844
840
845
841
-**Type:**`number`
846
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
842
+
-**Available for providers:**`'v8' | 'istanbul'`
847
843
-**CLI:**`--coverage.lines=<number>`
848
844
849
845
Threshold for lines.
@@ -852,7 +848,7 @@ See [istanbul documentation](https://github.com/istanbuljs/nyc#coverage-threshol
852
848
#### coverage.functions
853
849
854
850
-**Type:**`number`
855
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
851
+
-**Available for providers:**`'v8' | 'istanbul'`
856
852
-**CLI:**`--coverage.functions=<number>`
857
853
858
854
Threshold for functions.
@@ -861,7 +857,7 @@ See [istanbul documentation](https://github.com/istanbuljs/nyc#coverage-threshol
861
857
#### coverage.branches
862
858
863
859
-**Type:**`number`
864
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
860
+
-**Available for providers:**`'v8' | 'istanbul'`
865
861
-**CLI:**`--coverage.branches=<number>`
866
862
867
863
Threshold for branches.
@@ -870,44 +866,17 @@ See [istanbul documentation](https://github.com/istanbuljs/nyc#coverage-threshol
870
866
#### coverage.statements
871
867
872
868
-**Type:**`number`
873
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
869
+
-**Available for providers:**`'v8' | 'istanbul'`
874
870
-**CLI:**`--coverage.statements=<number>`
875
871
876
872
Threshold for statements.
877
873
See [istanbul documentation](https://github.com/istanbuljs/nyc#coverage-thresholds) for more information.
@@ -946,7 +915,7 @@ See [istanbul documentation](https://github.com/istanbuljs/nyc#ignoring-methods)
946
915
}
947
916
```
948
917
949
-
-**Available for providers:**`'c8' | 'v8' | 'istanbul'`
918
+
-**Available for providers:**`'v8' | 'istanbul'`
950
919
951
920
Watermarks for statements, lines, branches and functions. See [istanbul documentation](https://github.com/istanbuljs/nyc#high-and-low-watermarks) for more information.
Copy file name to clipboardExpand all lines: docs/guide/coverage.md
-4
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,6 @@ title: Coverage | Guide
6
6
7
7
Vitest supports Native code coverage via [`v8`](https://v8.dev/blog/javascript-code-coverage) and instrumented code coverage via [`istanbul`](https://istanbul.js.org/).
8
8
9
-
:::info
10
-
The `c8` provider is being replaced by the [`v8`](https://v8.dev/blog/javascript-code-coverage) provider. It will be deprecated in the next major version.
0 commit comments