Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/fix ci #4

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
## Istanbul - a JS code coverage tool written in JS

[![Build Status](https://secure.travis-ci.org/gotwarlost/istanbul.svg?branch=master)](http://travis-ci.org/gotwarlost/istanbul)
[![Dependency Status](https://gemnasium.com/gotwarlost/istanbul.svg)](https://gemnasium.com/gotwarlost/istanbul)
[![Coverage Status](https://img.shields.io/coveralls/gotwarlost/istanbul.svg)](https://coveralls.io/r/gotwarlost/istanbul?branch=master)
[![bitHound Score](https://www.bithound.io/github/gotwarlost/istanbul/badges/score.svg)](https://www.bithound.io/github/gotwarlost/istanbul)

[![NPM](https://nodei.co/npm/istanbul.png?downloads=true)](https://nodei.co/npm/istanbul/)
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]

[logo-image]: ./logo.png
[logo-url]: https://npmjs.org/package/macaca-istanbul
[npm-image]: https://img.shields.io/npm/v/macaca-istanbul.svg
[npm-url]: https://npmjs.org/package/macaca-istanbul
[travis-image]: https://travis-ci.com/macacajs/macaca-istanbul.svg?branch=master
[travis-url]: https://travis-ci.com/macacajs/macaca-istanbul
[codecov-image]: https://img.shields.io/coveralls/macacajs/macaca-istanbul.svg
[codecov-url]: https://codecov.io/gh/macacajs/macaca-istanbul
[download-image]: https://img.shields.io/npm/dm/macaca-istanbul.svg
[download-url]: https://npmjs.org/package/macaca-istanbul

---

> *Deprecation Notice:* this version of _istanbul_ is deprecated, we will not be
landing pull requests or releasing new versions. But don't worry, the [Istanbul 2.0
Expand Down
327 changes: 4 additions & 323 deletions demo/data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/Users/xdf/prjs/macaca/web-app-bootstrap/antd-sample/common/fetch.js": {
"path": "/Users/xdf/prjs/macaca/web-app-bootstrap/antd-sample/common/fetch.js",
"/Users/xunan/github/web-app-bootstrap/antd-sample/common/fetch.js": {
"path": "/Users/xunan/github/web-app-bootstrap/antd-sample/common/fetch.js",
"statementMap": {
"0": {
"start": {
Expand Down Expand Up @@ -492,327 +492,8 @@
"_coverageSchema": "332fd63041d2c1bcb487cc26dd0d5f7d97098a6c",
"hash": "6310e06ac47e6573bb3559f78b655981f4d8d9c3"
},
"/Users/xdf/prjs/macaca/web-app-bootstrap/antd-sample/testbot.jsx": {
"path": "/Users/xdf/prjs/macaca/web-app-bootstrap/antd-sample/testbot.jsx",
"statementMap": {
"0": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 36
}
},
"1": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 55,
"column": 1
}
},
"2": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 20,
"column": 3
}
},
"3": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 33
}
},
"4": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
},
"5": {
"start": {
"line": 17,
"column": 21
},
"end": {
"line": 17,
"column": 58
}
},
"6": {
"start": {
"line": 18,
"column": 6
},
"end": {
"line": 18,
"column": 45
}
},
"7": {
"start": {
"line": 22,
"column": 2
},
"end": {
"line": 24,
"column": 9
}
},
"8": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 14
}
},
"9": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 48,
"column": 3
}
},
"10": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 47,
"column": 6
}
},
"11": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 32
}
},
"12": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 22
}
},
"13": {
"start": {
"line": 49,
"column": 2
},
"end": {
"line": 54,
"column": 4
}
}
},
"fnMap": {
"0": {
"name": "(anonymous_0)",
"decl": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 17
}
},
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 55,
"column": 1
}
},
"line": 7
},
"1": {
"name": "(anonymous_1)",
"decl": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 8,
"column": 19
}
},
"loc": {
"start": {
"line": 8,
"column": 24
},
"end": {
"line": 20,
"column": 3
}
},
"line": 8
},
"2": {
"name": "(anonymous_2)",
"decl": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 13
}
},
"loc": {
"start": {
"line": 16,
"column": 18
},
"end": {
"line": 19,
"column": 5
}
},
"line": 16
},
"3": {
"name": "(anonymous_3)",
"decl": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 13
}
},
"loc": {
"start": {
"line": 22,
"column": 18
},
"end": {
"line": 24,
"column": 3
}
},
"line": 22
},
"4": {
"name": "(anonymous_4)",
"decl": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 26,
"column": 25
}
},
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 48,
"column": 3
}
},
"line": 26
},
"5": {
"name": "(anonymous_5)",
"decl": {
"start": {
"line": 30,
"column": 19
},
"end": {
"line": 30,
"column": 20
}
},
"loc": {
"start": {
"line": 30,
"column": 24
},
"end": {
"line": 33,
"column": 11
}
},
"line": 30
}
},
"branchMap": {},
"s": {
"0": 1,
"1": 1,
"2": 2,
"3": 1,
"4": 1,
"5": 1,
"6": 1,
"7": 2,
"8": 1,
"9": 2,
"10": 2,
"11": 0,
"12": 0,
"13": 2
},
"f": {
"0": 2,
"1": 1,
"2": 1,
"3": 1,
"4": 2,
"5": 0
},
"b": {},
"_coverageSchema": "332fd63041d2c1bcb487cc26dd0d5f7d97098a6c",
"hash": "bb29c0b4beed5073080160909302d2f6e1a7517f"
},
"/Users/xdf/prjs/macaca/web-app-bootstrap/antd-sample/app.jsx": {
"path": "/Users/xdf/prjs/macaca/web-app-bootstrap/antd-sample/app.jsx",
"/Users/xunan/github/web-app-bootstrap/antd-sample/app.jsx": {
"path": "/Users/xunan/github/web-app-bootstrap/antd-sample/app.jsx",
"statementMap": {
"0": {
"start": {
Expand Down
8 changes: 7 additions & 1 deletion demo/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ reporter.addAll([
'lcov',
'json',
]);
reporter.write(collector, true, () => {
reporter.write(collector, {
incrementalMap: {
'/Users/xunan/github/web-app-bootstrap/antd-sample/app.jsx': [
[ 61, 74 ],
],
},
}, () => {
const coverageHtml = path.join(p, 'index.html');
console.log(coverageHtml);
open(coverageHtml);
Expand Down
Loading