Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage.raw.json? #2861

Closed
ljharb opened this issue Feb 11, 2017 · 7 comments
Closed

coverage.raw.json? #2861

ljharb opened this issue Feb 11, 2017 · 7 comments

Comments

@ljharb
Copy link
Contributor

ljharb commented Feb 11, 2017

istanbul produces a coverage.raw.json file, which is useful for regenerating different reports after the fact, or merging coverage reports from multiple runs (say, the same tests but on multiple node versions, where different feature checking branches apply). I use https://www.npmjs.com/package/istanbul-merge to merge those raw coverage files into a single report.

Can jest produce coverage.raw.json just like istanbul?

@cpojer
Copy link
Member

cpojer commented Feb 11, 2017

I don't know. Do you want to find out and send a PR if it doesn't?

@ljharb
Copy link
Contributor Author

ljharb commented Feb 11, 2017

Can you point to how jest uses istanbul? I'll compare the configuration settings I normally use to what jest does.

@cpojer
Copy link
Member

cpojer commented Feb 11, 2017

cc @DmitriiAbramov wrote all of the coverage support, he may be able to help you out.

@aaronabramov
Copy link
Contributor

hey @ljharb!
i actually think it's possible to do it with the regular .json report that istanbul produces in Jest, we merge some of our coverage in Jest already. I'm not sure what .raw.json is, but here's how we report our coverage https://github.com/facebook/jest/blob/master/packages/jest-cli/src/reporters/CoverageReporter.js#L72-L73

@rickhanlonii
Copy link
Member

Pretty outdated so closing (also phrased as a question opposed to a feature request). @ljharb please open a new feature request if this is still something we dont have that you want us to add!

@ljharb
Copy link
Contributor Author

ljharb commented May 26, 2018

It’s definitely something i still want; i can open a new issue if necessary or can retitle instead.

@SimenB
Copy link
Member

SimenB commented May 26, 2018

Yeah, if you wouldn't mind filling out the issue template, that'd be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants