--test-coverage-exclude


稳定性: 1 - 实验性

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

🌐 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.