Skip to content

Failure on really large coverage.json files #2

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

Open
dwabyick opened this issue Feb 12, 2015 · 0 comments
Open

Failure on really large coverage.json files #2

dwabyick opened this issue Feb 12, 2015 · 0 comments

Comments

@dwabyick
Copy link
Contributor

I used this on a really large coverage file, and I ran into a failure:

undefined:2476
          "source": " * Dissemina
                                 ^
SyntaxError: Unexpected end of input
    at Object.parse (native)
    at Object.<anonymous> (/usr/local/lib/node_modules/json2htmlcov/bin/json2htmlcov:21:16)

This appears to be related to limitations in the way that fs.readFileSync('/dev/stdin') is not guaranteed to read in the whole file.
https://github.com/yiwang/json2htmlcov/blob/master/bin/json2htmlcov#L21

Information on this issue is discussed here:
nodejs/node-v0.x-archive#7412

I'll try to submit a pull to fix this issue.

dwabyick added a commit to dwabyick/json2htmlcov that referenced this issue Feb 12, 2015
yiwang added a commit that referenced this issue Sep 26, 2015
fixes issue #2 - issue with really large json files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant