launch.json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run mocha",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": [
"test/wrap.js",
"--no-timeouts"
],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null
}
]
}
本文详细介绍了如何在Visual Studio Code中设置launch.json文件,以使用Mocha进行单元测试的自动运行。通过具体参数配置,如指定测试脚本路径、禁用超时限制等,确保了测试过程的顺利进行。
3868

被折叠的 条评论
为什么被折叠?



