Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k
stars
786
forks
source link
Unable to generate report from the istanbul report command #825
When i execute the below command i'm getting the following error, this problem doesn't come normally , but when i have more set of json files (probably one of the json file format might not correct , but how to identify that), please assist in solving this issue.
$ istanbul report text --root merge6/ --dir jsonfilesreport/ -v
Error Details:-
undefined:1
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at /usr/local/lib/node_modules/istanbul/lib/command/report.js:110:44
at Array.forEach (native)
at /usr/local/lib/node_modules/istanbul/lib/command/report.js:109:19
at /usr/local/lib/node_modules/istanbul/lib/util/file-matcher.js:39:20
at f (/usr/local/lib/node_modules/istanbul/node_modules/once/once.js:25:25)
at Glob. (/usr/local/lib/node_modules/istanbul/node_modules/glob/glob.js:133:7)
at emitOne (events.js:96:13)
at Glob.emit (events.js:188:7)
at Glob._finish (/usr/local/lib/node_modules/istanbul/node_modules/glob/glob.js:172:8)
When i execute the below command i'm getting the following error, this problem doesn't come normally , but when i have more set of json files (probably one of the json file format might not correct , but how to identify that), please assist in solving this issue.
$ istanbul report text --root merge6/ --dir jsonfilesreport/ -v
Error Details:- undefined:1
SyntaxError: Unexpected end of JSON input at Object.parse (native) at /usr/local/lib/node_modules/istanbul/lib/command/report.js:110:44 at Array.forEach (native) at /usr/local/lib/node_modules/istanbul/lib/command/report.js:109:19 at /usr/local/lib/node_modules/istanbul/lib/util/file-matcher.js:39:20 at f (/usr/local/lib/node_modules/istanbul/node_modules/once/once.js:25:25) at Glob. (/usr/local/lib/node_modules/istanbul/node_modules/glob/glob.js:133:7)
at emitOne (events.js:96:13)
at Glob.emit (events.js:188:7)
at Glob._finish (/usr/local/lib/node_modules/istanbul/node_modules/glob/glob.js:172:8)