--test-coverage-exclude


稳定性: 1 - 实验性的

¥Stability: 1 - Experimental

使用 glob 模式从代码覆盖范围中排除特定文件,该模式可以匹配绝对和相对文件路径。

¥Excludes specific files from code coverage using a glob pattern, which can match both absolute and relative file paths.

可以多次指定此选项以排除多个 glob 模式。

¥This option may be specified multiple times to exclude multiple glob patterns.

如果同时提供了 --test-coverage-exclude--test-coverage-include,则文件必须满足两个条件才能包含在覆盖率报告中。

¥If both --test-coverage-exclude and --test-coverage-include are provided, files must meet both criteria to be included in the coverage report.

默认情况下,所有匹配的测试文件都排除在覆盖率报告之外。指定此选项将覆盖默认行为。

¥By default all the matching test files are excluded from the coverage report. Specifying this option will override the default behavior.