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