istanbuljs / nyc

the Istanbul command line interface

Home Page:https://istanbul.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it possible to store nyc output with relative path?

shivamsouravjha opened this issue · comments

  • If I am generating nyc coverage in one machine, share the repo and try running the coverage command on other machine
npx nyc  report --temp-directory=.nyc_output  --verbose

Current behaviou is that I get 0 coverage, reason being the file path has changed while switching machines.

Is it possible to generate the .json files with relative paths to the current repo so that after switching machine I would get the report with the same nyc data?