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

testing: add code coverage #105

Merged
merged 2 commits into from
Dec 3, 2019
Merged

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Dec 3, 2019

This isn't needed for that npm release, but thought I'd file now as a PR to make sure folks were happy with this approach.

FWIW, there are issues filed of pegjs for code coverage (just added) and for a prerequisite of this, source maps, but I think it is still worth adding nyc here now in this PR, as it still allows us to detect coverage for the non-PEG files (and if someone really wanted, they could dig into the compiled PEG file so as to compare manually back to PEG source).

Once this may be merged, I have a couple coverage tests/changes we can add to improve coverage.

@brettz9
Copy link
Contributor Author

brettz9 commented Dec 3, 2019

I've added a separate commit which adds an HTML coverage report, with npm scripts to start a static server and open the report therein.

@brettz9 brettz9 mentioned this pull request Dec 3, 2019
@brettz9 brettz9 merged commit f165416 into jsdoctypeparser:master Dec 3, 2019
@brettz9 brettz9 deleted the coverage branch December 4, 2019 16:07
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

Successfully merging this pull request may close these issues.

None yet

2 participants