Che*_*rry 5 javascript mocha.js npm
当我运行npm test它时输出:
mocha ./tests/ --recursive --reporter mocha-junit-reporter
Run Code Online (Sandbox Code Playgroud)
并且所有测试运行良好。但是当我尝试调用 mocha 时,./tests/flickr/mytest --reporter junit-reporter我得到了:
Unknown "reporter": junit-reporter
Run Code Online (Sandbox Code Playgroud)
如何正确传递?
来自mocha-junit-reporter自述文件:
# install the package
npm install mocha-junit-reporter --save-dev
# run the test with reporter
mocha test --reporter mocha-junit-reporter --reporter-options mochaFile=./path_to_your/file.xml
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5010 次 |
| 最近记录: |