GeezerVison is showing github.com — doc: move --test-coverage-{ex,in}clude to proper location · nodejs/node@139c62e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/cli.md +34Lines changed: 34 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2008,6 +2008,40 @@ added: v20.10.0 |
2008 | 2008 | The maximum number of test files that the test runner CLI will execute |
2009 | 2009 | concurrently. The default value is `os.availableParallelism() - 1`. |
2010 | 2010 |
|
| 2011 | +### `--test-coverage-exclude` |
| 2012 | + |
| 2013 | +<!-- YAML |
| 2014 | +added: |
| 2015 | + - v22.5.0 |
| 2016 | +--> |
| 2017 | + |
| 2018 | +> Stability: 1 - Experimental |
| 2019 | +
|
| 2020 | +Excludes specific files from code coverage using a glob pattern, which can match |
| 2021 | +both absolute and relative file paths. |
| 2022 | + |
| 2023 | +This option may be specified multiple times to exclude multiple glob patterns. |
| 2024 | + |
| 2025 | +If both `--test-coverage-exclude` and `--test-coverage-include` are provided, |
| 2026 | +files must meet **both** criteria to be included in the coverage report. |
| 2027 | + |
| 2028 | +### `--test-coverage-include` |
| 2029 | + |
| 2030 | +<!-- YAML |
| 2031 | +added: |
| 2032 | + - v22.5.0 |
| 2033 | +--> |
| 2034 | + |
| 2035 | +> Stability: 1 - Experimental |
| 2036 | +
|
| 2037 | +Includes specific files in code coverage using a glob pattern, which can match |
| 2038 | +both absolute and relative file paths. |
| 2039 | + |
| 2040 | +This option may be specified multiple times to include multiple glob patterns. |
| 2041 | + |
| 2042 | +If both `--test-coverage-exclude` and `--test-coverage-include` are provided, |
| 2043 | +files must meet **both** criteria to be included in the coverage report. |
| 2044 | + |
2011 | 2045 | ### `--test-force-exit` |
2012 | 2046 |
|
2013 | 2047 | <!-- YAML |
|