Comments (7)
This is odd, the raw output itself looks reasonable; perhaps you could create a testing repo with a minimal reproduction for us to dig into.
from c8.
from c8.
I will isolate this to a simple test case and create a repo
Friendly ping @tonysoft
from c8.
@tonysoft closing this as inactive, please feel free to reopen if you're able to provide a repo demonstrating the issue.
There's been quite a bit of work on c8 over the past year, so you might also try the latest version.
from c8.
I'm running into the same issue. The text reporter works fine, but the html reporter generates a .json file instead of html output. I'm using version 7.1.0 of c8.
from c8.
I'm also getting some other errors in the output, e.g.
file: /Users/kevinbarabash/zippers/output/Test.Spec.Summary/index.js error: Error: Error parsing mappings (code 1): the mappings contained a negative line, column, source index, or name index
at BasicSourceMapConsumer._parseMappings (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:360:13)
at BasicSourceMapConsumer._getMappingsPtr (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:315:12)
at _wasm.withMappingCallback (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:510:14)
at Object.withMappingCallback (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/wasm.js:95:11)
at BasicSourceMapConsumer.originalPositionFor (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:508:16)
at originalPositionTryBoth (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/source.js:173:30)
at CovSource.offsetToOriginalRelative (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/source.js:56:19)
at V8ToIstanbul._maybeRemapStartColEndCol (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js:167:84)
at block.ranges.forEach (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js:92:18)
at Array.forEach (<anonymous>)
It's possible that these are interfering with c8
's ability to generate the HTML report. I'm going to try to dig into the sourcemap issue sometime this week.
from c8.
I recompiled my project without sourcemaps and I'm still running into the same issue with a .json file for output instead of HTML.
from c8.
Related Issues (20)
- Improve code quality by increasing code coverage. HOT 1
- Running tests with coverage causes CPU to hit 100% after tests finish HOT 17
- Why are reports generated when tests fail? HOT 1
- Should we have an `eslint-plugin-c8`?
- "as const" is marked as uncovered in coverage reports HOT 5
- No coverage when using self-references HOT 2
- Empty lcov if source code using `.mts`
- If excludeAfterRemap is enabled, the coverage stats become constant 100
- c8 report is directed to coverage/root which cant be resolved
- Context-insensitive parsing of sourceMappingURL
- [feat] `report-unused-ignore-directives`
- Collecting coverage within VM HOT 1
- `if`, `while`, etc. body without braces not always reported in `% Stmts`, `% Lines`, or `Uncovered Line #s`
- c8 crashes when encountering data:text/javascript;base64 URLs
- Security finding in c8 versions 6, 7, and 8 HOT 1
- Testing Angular 11.x web appliaction with 0 coverage HOT 1
- Path contains invalid characters
- only % branch and % funcs are ignored, not % stmts or % lines
- Merge the results of different testing tools and report it (Read report from lcov.info instead of json files) HOT 1
- c8 upgrade from 8.0.0 to 8.0.1 seems to break --exclude on Windows when value is single-quoted in npm script HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c8.