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 baseline switch to nyc instrument command #1261

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

Commits on Jan 2, 2020

  1. Add baseline switch to nyc instrument command

    Adds the switch `--baseline` that creates a baseline coverage file when running `nyc instrument ...`.
    The baseline coverage files is saved to `<temp-dir>/baseline/coverage.json`.
    The baseline coverage file saves the zero coverage state for all files specified by your configuration.
    Include this file when reporting to highlight source files with no coverage.
    
    Note that  `<temp-dir>/baseline/coverage.json` isn't automatically included when running `nyc report`.
    However this might not be such an issue when running nyc for instrumentation and reporting only.
    Andrew Finlay committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    e63828f View commit details
    Browse the repository at this point in the history