--test-coverage-include
稳定性: 1 - 实验性的
¥Stability: 1 - Experimental
使用 glob 模式在代码覆盖范围内包含特定文件,该模式可以匹配绝对和相对文件路径。
¥Includes specific files in code coverage using a glob pattern, which can match both absolute and relative file paths.
可以多次指定此选项以包含多个 glob 模式。
¥This option may be specified multiple times to include 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.