--test-name-pattern


一个正则表达式,用于配置测试运行器,只执行名称与提供的模式匹配的测试。有关更多详细信息,请参阅 按名称筛选测试 的文档。

【A regular expression that configures the test runner to only execute tests whose name matches the provided pattern. See the documentation on filtering tests by name for more details.】

如果同时提供了 --test-name-pattern--test-skip-pattern,测试必须满足两个条件才能执行。

【If both --test-name-pattern and --test-skip-pattern are supplied, tests must satisfy both requirements in order to be executed.】