New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coverage-viewer

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coverage-viewer

Create a static website for exploring your project’s coverage statistics

  • 0.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Coverage Viewer

npm version Build Status Coverage

Turn your code coverage output into a website for exploring your project's coverage statistics more easily:

Installation

npm i -g coverage-viewer

Usage

Currently only tested with C# coverlet JSON output.

CLI Usage:

Usage: coverage-viewer <coverageFile> [options]

Options:
  -s             The root of your project's source code directory     [required]
  -o             Where coverage-viewer should write output
  -u, --up       Whether to start the express viewing server           [boolean]
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Examples:
  coverage-viewer coverage.json -s ./src -o ./coverage

Using the -u or --up flags, you can run an express app to view the output, and automatically re-run the generator if the coverage file changes.

coverage-viewer coverage.json -s ./src -o ./coverage --up

Alternatively, once you've generated the output, serve it with your preferred server:

npm i -g httpserver
cd coverage
httpserver

License

MIT © Forrest Desjardins

Keywords

FAQs

Package last updated on 29 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc