Skip to content

Add code coverage with nyc tool with HTML support#40

Open
anuragparida wants to merge 1 commit intoleopardslab:masterfrom
anuragparida:code_coverage
Open

Add code coverage with nyc tool with HTML support#40
anuragparida wants to merge 1 commit intoleopardslab:masterfrom
anuragparida:code_coverage

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.

2 participants