Skip to content

Instantly share code, notes, and snippets.

@kuzuha
Created April 14, 2013 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuzuha/5384708 to your computer and use it in GitHub Desktop.
Save kuzuha/5384708 to your computer and use it in GitHub Desktop.
{
"instrumentation": "node-jscoverage",
"sloc": 3,
"hits": 2,
"misses": 1,
"coverage": 66.66666666666666,
"files": [
{
"filename": "build/main/js/sample-project.js",
"coverage": 66.66666666666666,
"hits": 2,
"misses": 1,
"sloc": 3,
"source": {
"1": {
"source": "fuga();",
"coverage": 1
},
"2": {
"source": "function fuga() {",
"coverage": ""
},
"3": {
"source": " return 1;",
"coverage": 1
},
"4": {
"source": "}",
"coverage": ""
},
"5": {
"source": "function hoge() {",
"coverage": ""
},
"6": {
"source": " return 2;",
"coverage": 0
},
"7": {
"source": "}",
"coverage": ""
},
"8": {
"source": "//@ sourceMappingURL=sample-project.js.map",
"coverage": ""
},
"9": {
"source": "",
"coverage": ""
}
}
}
],
"stats": {
"suites": 1,
"tests": 1,
"passes": 0,
"pending": 0,
"failures": 1,
"start": "2013-04-14T10:56:20.819Z",
"end": "2013-04-14T10:56:20.829Z",
"duration": 10
},
"tests": [
{
"title": "YES",
"fullTitle": "Sample YES"
}
],
"failures": [
{
"title": "YES",
"fullTitle": "Sample YES"
}
],
"passes": []
}
{"version":3,"file":"sample-project.js","sources":["../../../main/ts/abc.ts","../../../main/ts/fuga.ts","../../../main/ts/hoge.ts"],"names":["fuga","hoge"],"mappings":"AAAA,IAAI,EAAE;ACAN,SAAS,IAAI;IACTA,OAAOA,CAACA,CAACA;AACbA,CAACA;ACFD,SAAS,IAAI;IACTC,OAAOA,CAACA,CAACA;AACbA,CAACA"};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment