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

Add code coverage with nyc tool with HTML support #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add code coverage with nyc tool with HTML support #40

wants to merge 1 commit into from

Conversation

anuragparida
Copy link

Used nyc tool by IstanbulJS to provide Code coverage with added functionality of HTML support (see below)-

  • Employed method to generate HTML file in ./coverage depicting Code Coverage results in both CLI format and Graphical format.

  • Run the coverage command with sudo npm test to view the coverage details in the CLI and generate an HTML file in ./coverage.

CodeCoverageCommand

  • View the Graphical data by opening ./coverage/index.html in a web browser.

CodeCoverageBrowser

  • You can then browse the directory structure to see which files failed the tests.

CodeCoverageDirectoryStructure

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