istanbuljs.github.io icon indicating copy to clipboard operation
istanbuljs.github.io copied to clipboard

Question: istanbul version

Open v-jung opened this issue 6 years ago • 2 comments

Hello,

I'm currently using v8-to-istanbul to convert chromium headless coverage output via puppeteer to a format that can be consumed by https://github.com/SitePen/remap-istanbul.

Thanks for your work btw!

If the output of this package is in the "old" istanbul format as linked in the README: https://github.com/gotwarlost/istanbul/blob/master/coverage.json.md why is it part of the new istanbuljs repository?

Furthermore I cannot find further information on the new istanbuljs/nyc format: is there some documentation and where can i find it?

Are there any plans to support the new nyc format in this package? (well, i don't know of the differences between the formats, just that i cannot easily merge them) I would like to switch completely to nyc.

Could you please shed some light on these questions. Thanks!

v-jung avatar Jan 29 '19 09:01 v-jung

👋 hello @v-jung, v8-to-istanbul should be representing data in a format that is consumable by nyc; which does have slight differences between the Istanbul 1.0 format.

This format isn't well documented and I agree that we should do so here:

https://istanbul.js.org/

Would love help doing so if you have any interest in contributing.

bcoe avatar Mar 05 '19 18:03 bcoe

@bcoe in addition to human readable I think a JSON schema would be nice. Maybe human readable docs could even be generated by JSON schema, not sure.

coreyfarrell avatar Mar 05 '19 18:03 coreyfarrell