Test all the units!
Gergely Nemeth
271

I tried all the steps, my coverage works for a single test file that is in root folder, else I get “No coverage information was collected, exit without writing coverage information

My folder structure is

app/ 
 — node_modules/
 — coverage/
 — server/
 — — app.js
 — test/
 — — index.test.js
 — test.js

When I run

istanbul cover _mocha test.js

I get a coveraga report however If I try to tun

istanbul cover _mocha test/*.js
or
istanbul cover _mocha test/index.test.js

I don’t get any coverage report

I tried all hit and trial its not working ant work around for the same

Show your support

Clapping shows how much you appreciated atul joshi’s story.