Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4
{ | ||
"name": "c8", | ||
"version": "3.0.0-alpha.3", | ||
"version": "3.0.0-alpha.4", | ||
"description": "collect test coverage using v8's inspector", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"bundle": "bundle-dependencies update", | ||
"test": "./bin/c8.js node ./node_modules/.bin/_mocha ./test/*.js", | ||
"test": "nyc mocha ./test/*.js", | ||
"posttest": "standard", | ||
@@ -57,2 +57,3 @@ "release": "standard-version" | ||
"mocha": "^4.0.1", | ||
"nyc": "^11.4.1", | ||
"standard": "^10.0.3", | ||
@@ -59,0 +60,0 @@ "standard-version": "^4.2.0" |
@@ -15,20 +15,9 @@ # c8 - native v8 code-coverage | ||
## remaining work | ||
## How it Works | ||
- [x] write logic for converting v8 coverage output to [Istanbul Coverage.json format](https://github.com/gotwarlost/istanbul/blob/master/coverage.json.md). | ||
* https://github.com/bcoe/v8-to-istanbul | ||
Before running your application c8 creates [an inspector session](https://nodejs.org/api/inspector.html) in v8, and enables v8's | ||
[built in coverage reporting](https://v8project.blogspot.com/2017/12/javascript-code-coverage.html). | ||
- [ ] talk to node.js project about silencing messages: | ||
> `Debugger listening on ws://127.0.0.1:56399/e850110a-c5df-41d8-8ef2-400f6829617f`. | ||
- [x] figure out why `detailed` mode does not appear to be working. | ||
* this is fixed in v8, as long as you start with `--inspect-brk` you | ||
can collect coverage in detailed mode. | ||
- [x] figure out a better way to determine that all processes in event loop | ||
have terminated (except the inspector session). | ||
- [x] process.exit() can't perform an async operation; how can we track coverage | ||
for scripts that exit? | ||
* we can now listen for the `Runtime.executionContextDestroyed` event. | ||
- [x] figure out why instrumentation of .mjs files does not work: | ||
* see: https://github.com/nodejs/node/issues/17336 | ||
Just before your application exits c8 fetches the coverage information from | ||
v8 and writes it to disk in a format compatible with | ||
[Istanbul's reporters](https://istanbul.js.org/). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20
6628148
6
22