3

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.

cmd output

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

M. Davis
  • 669
  • 2
  • 10
  • 17
Thanh Tài
  • 31
  • 2

1 Answers1

0

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
A_J
  • 1,635
  • 1
  • 18
  • 31