Analyzing coverage of node server in Windows
zeeshanr97 opened this issue · 1 comments
zeeshanr97 commented
Creates a coverage folder in the root directory but doesn't generate any files
in package.json:
"scripts": {
"start": "node server.js",
"test": "istanbul cover server.js"
},
in cmd : npm test
I ran test cases to test the server while running the coverage analyzer, the server runs fine but no coverage file generation occurs.
fatemeh-fo commented
npm install --save-dev nyc
"scripts": {
"start": "node server.js",
"test": "nyc --reporter=lcov --report-dir=coverage node server.js"
}
npm test