Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在跑步者课程中,我可以执行取消测试任务。如果我不使用 runner 类,如何取消测试执行?我需要从我的代码中做到这一点。如果未提供环境变量,则退出测试谢谢
您可以<Ctrl> + C在测试运行时按下终端窗口。
<Ctrl> + C
在这种情况下,您可以使用 process.emit('SIGINT')。安德烈·贝林的回答