You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
c8 CLI doesn't work properly when executed in a sub-directory of the project #498
Let me also add that nyc works perfectly regardless of where it is executed - i.e. replace c8 with nyc in the showcased shell commands and the report is perfect in both case. We educated all our developers too execute coverage as soon as possible and on local tests, and unfortunately c8 not supporting this pattern means that we can't migrate to it from nyc.
For information, after working on PR #539 and seeing how fixing the current issue would break c8, I created a code coverage tool from scratch that is not affected by the issue : https://www.npmjs.com/package/one-double-zero. Please give it a try if you are affected by the current issue.
Activity
skullpsg commentedon May 9, 2024
Can you try with --allowExternal on the cmd. It would work.
ericmorand commentedon May 9, 2024
I'll try but I think it won't: c8 resolves the
srcreference from the working directory and will then expect that the files exist intest/src.Fix issue bcoe#498
Fix issue bcoe#498
ericmorand commentedon Jul 25, 2024
For information, after working on PR #539 and seeing how fixing the current issue would break c8, I created a code coverage tool from scratch that is not affected by the issue : https://www.npmjs.com/package/one-double-zero. Please give it a try if you are affected by the current issue.