No coverage information was collected, istanbul coverage. (answer for similar issues in page is not work for me)

吃可爱长大的小学妹 提交于 2019-12-10 19:06:47

问题


i user this command:

 set CODACY_PROJECT_TOKEN=my_token&& istanbul cover --report lcov node_modules/mocha/bin/_mocha -- -r babel-register -r ./test_helper.js \"test/**/*@(.js|.jsx)\"

Then i take passed in all test case but "No coverage information was collected" is show.

I have no idea to fix it. can you help me?


回答1:


I used babel-node and babel-istanbul modules and it works form me. I am using below command.

babel-node node_modules/.bin/babel-istanbul cover _mocha -- --recursive tests/test.*.js --exit


来源:https://stackoverflow.com/questions/46781496/no-coverage-information-was-collected-istanbul-coverage-answer-for-similar-is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!