按标签筛选


🌐 Filtering by tag

每个 --experimental-test-tag-filter 值都是一个字面标签名。只有当测试的标签集合包含该名称时,测试才会运行。该标志可以指定多次;测试必须匹配 每个 过滤器才能运行。对于 run() 上的 testTagFilters 数组也是同样适用的。过滤器不区分大小写,并与 --test-name-pattern--test-skip-pattern 以及 .only 过滤进行 AND 运算。

🌐 Each --experimental-test-tag-filter value is a literal tag name. A test runs only when its tag set contains that name. The flag may be specified more than once; tests must match every filter to run. The same applies to the testTagFilters array on run(). Filters are case-insensitive and AND'd with --test-name-pattern, --test-skip-pattern, and .only filtering.

未标记的测试在任何非空过滤器下都会被排除,因为过滤器要求标签必须存在。

🌐 Untagged tests are excluded under any non-empty filter, since the filter requires the tag to be present.