Socket
Socket
Sign inDemoInstall

c8

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8 - npm Package Compare versions

Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4

5

package.json
{
"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"

23

README.md

@@ -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/).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc