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

export is instrumented with 0 coverage incase of zero test project #528

Open
skullpsg opened this issue May 9, 2024 · 1 comment
Open

Comments

@skullpsg
Copy link

skullpsg commented May 9, 2024

I am trying to generate coverage for my project with zero test. I am getting instrumentation information with zero on export as well as empty line.

Issue is I am having a file with on only single export statement and comments. I am getting 0/6, for that. I want to get 6/6 for this case. Is it possible?

Thanks in advance.

@ericmorand
Copy link

You should actually have 0/0, and the file being considered as empty by c8. Unfortunately, this is not how the tool works:

#500
#494

Would you like to give https://www.npmjs.com/package/one-double-zero a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants