c8 icon indicating copy to clipboard operation
c8 copied to clipboard

output coverage reports using Node.js' built in coverage

Results 116 c8 issues
Sort by recently updated
recently updated
newest added

* **Version**: `v22.4.0` * **Platform**: `Linux M720q 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux` I am executing c8 like so; ``` c8 --src=src/...

I am trying to generate coverage for my project with zero test. I am getting instrumentation information with zero on export as well as empty line. Issue is I am...

* **9.1.0**: * **MacOS**: Hello! When I have c8 running from a sub-directory, I can't seem to get it to report coverage for src code that is one level up...

We caused confusion for @Trott with the language `next` for `/* c8 ignore next */`, because he assumed (understandably so) that this would ignore the next logical element in the...

docs

* **Version**: 7.1.0 * **Platform**: Linux `test-exclude` unilaterally excludes files in parent (relative to cwd) directories. This was very confusing when I was trying to generate coverage reports from within...

I noticed when adding c8 to puppeteer-to-istanbul that it had strange behavior related to ignoring folders (it was including files in `.nyc_output` and `test`).

bug
p2

I have a project which has package.json scripts: ```js "test": "c8 --no-check-coverage -r none tape test/test.js | tap-min", "posttest": "c8 report" ``` I would expect this to function in node.js...

bug
help wanted

* **Version**: c8 7.1.0 * **Platform**: node.js v13.11.0, Linux x86_64 installed by nvm The following script demonstrates the problem: ```js const arr = ['value']; console.log('longest to shortest:', ...arr.sort((a, b) =>...

bug
more-info-needed
v8

* **Version**: 7.1.0 * **Platform**: Fedora 30 x86_64 I'm working on an experimental loader hook for nyc to provide coverage of ES modules. Initially my scripts looked like: ```js {...

bug
help wanted
p2

I've read through the README.md but I can't find a CLI option to _not_ write log files to disk in a "coverage" dir (so: only reporting on stdout). How do...