当使用带有xargs的NPM时,没有mocha测试运行或报告
no mocha tests run or report when using npm with | xargs
我正在尝试使用npm运行mocha测试,像这样:
scripts: {
test: "find ./src ./test -name *.js | xargs mocha --opts mocha.opts"
}
当我直接从CLI中执行它时,它工作得很好,但是当我使用npm run test时,它似乎没有执行任何测试(或者至少没有显示它们的任何输出)。
仅供参考:我使用xargs,因为mocha没有忽略文件的选项,我使用emacs,它在同一目录
您可能需要转义*.js
:
scripts: {
test: "find ./src ./test -name '*.js' | xargs mocha --opts mocha.opts"
}
相关文章:
- 有没有任何方法可以将控制器从文件加载到ui路由器$stateProvider中
- D3在一个调用中绘制不同的SVG形状,没有可见性
- 我的jQuery插件参数没有正确启动,遇到了问题
- 视频HTML没有'无法在Internet Explorer 11上工作
- Firebase迁移-简单的Firebase.set没有'不再工作了——旧的还是新的
- 节点Js:How to catch a“;没有这样的文件或目录“;读取线模块出错
- 当我尝试运行mocha测试时,没有定义Worker
- 使用 Mocha 在 NodeJS 和 MongoDB 中测试用户模型时没有结果
- Mongoose mongodb保存子文档混乱?Mocha测试没有完成()
- 当使用selenium-webdriverjs运行mocha测试时,调用堆栈没有太大帮助
- Blanket.JS没有'不能用Mocha生成报告
- 有没有类似于Mocha.js的方法在Nightwatch.js中生成动态测试
- 运行mocha测试,但得到错误:ReferenceError: document没有定义
- 在我的Mocha测试中,Angular Controller Mock没有持续存在
- 当使用带有xargs的NPM时,没有mocha测试运行或报告
- Mocha没有't在after()函数中调用rmdir
- Mocha和Chai没有答应
- jQuery没有使用mocha来测试wordpress javascript
- 使用Karma - done()运行的Mocha单元测试没有定义
- Zombie/Mocha browser.wait(…)方法没有执行