Tag: 水龙头

在WebStorm中使用任意NodeJSunit testing框架进行debugging

我已经分叉了一个NodeJS项目,使用testing任何协议(节点轻拍)。 我正在使用WebStorm 8.0.1 IDE。 我现在想在运行unit testing时进行一步debugging。 由于在Node的世界里Tap看起来很模糊,当然在WebStorm中没有针对这个框架的运行/debuggingconfiguration。 通过使用这些设置configurationNode.js运行configuration,我能够通过IDE运行testing: 节点解释器:C:\ Program Files \ nodejs \ node.exe 节点参数:–debug-brk 工作目录:{我的项目目录} JavaScript文件:node_modules \ tap \ bin \ tap.js 应用参数:test / test – *。js 但是,使用此configuration进行debugging时,我的断点不会被打中。 另外,即使插入一个debugger; 声明不会触发rest。 有没有办法让我在WebStorm中专门运行taptesting? 如果没有,为什么你认为我的testing中的断点没有被击中?