Skip to content

Inconsistent nyc baseline coverage results with pre-instrumented code #1208

@AndrewFinlay

Description

@AndrewFinlay

Link to bug demonstration repository

nyc_bad_baseline

Expected Behavior

Baseline coverage generated from raw source should match that generated from instrumented source.

Observed Behavior

The coverage report is different, with missing files and differences in statistics.
The missing files seem to be affected by the presence of whitespace and comments.

Troubleshooting steps

  • [y] still occurring when I put cache: false in my nyc config

Environment Information

  System:
    OS: macOS High Sierra 10.13.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
    Memory: 564.82 MB / 32.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v8.16.0/bin/npm
 ...snip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions