--test-isolation=mode
配置测试运行器中使用的测试隔离类型。当 mode
为 'process'
时,每个测试文件都在单独的子进程中运行。当 mode
为 'none'
时,所有测试文件都与测试运行器在同一个进程中运行。默认隔离模式为 'process'
。如果不存在 --test
标志,则忽略此标志。有关详细信息,请参阅 测试运行器执行模型 部分。
¥Configures the type of test isolation used in the test runner. When mode
is
'process'
, each test file is run in a separate child process. When mode
is
'none'
, all test files run in the same process as the test runner. The default
isolation mode is 'process'
. This flag is ignored if the --test
flag is not
present. See the test runner execution model section for more information.