-
-
Notifications
You must be signed in to change notification settings - Fork 14
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
"Coverage 100%" badge is misleading #578
Comments
Hi, @mrazauskas. The only mention for this is in Contributing.md: Lines 116 to 118 in 2b1eff0
I use two specific comments related to a problem between c8 and tsx: /* c8 ignore next */ // ?
/* c8 ignore next */ // Types
Except by these two, all other comments should fit on That line you mentioned, there's really no point in ignoring it in the coverage. I apologize for any misunderstanding and would like to hear your opinion on these exceptions I mentioned. 100% coverage is indeed Poku's goal.
Also, I'm considering migrating from c8 to monocart-coverage-reports. |
All is fine. This is only a badge (; By the way, I was thinking to recommend looking at |
By the way, those |
Yes, it bothers me a lot. I tried a test locally with /* c8 ignore next 3 */ // Process
export const onSigint = () => {
process.stdout.write('\u001B[?25h');
};
/* c8 ignore next */ // Process
process.once('SIGINT', onSigint); I'll try to investigate some way of being able to test specific scenarios with |
👥 For communityNote If you don't agree with any of these not covered topics, please feel free to comment. I'm totally open to discussions and opinions. Different behaviors due to platform versions
Different behaviors due to Deno and Bun platforms
process-based
Different behaviors due to OS
The choice not to consider these topics in the coverage comes from the fact that it isn't possible, not that they are ignored. For example, even if exhaustive tests are created for Node.js
In disagreements, this issue can be reopened at any time 🤝 Related |
Less formal, I don't want anyone to feel that way when using Poku, which is why I'm taking it so seriously 💙 |
I appreciate the effort. Thank you. |
Converting this issue to a discussion in favor of #612. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
While trying to migrate a larger code base to Poku, I bump into an issue with async
afterEach()
and asynctest()
. Moving code fromafterEach()
to the end oftest()
makes all work as expected. (I will create reproduction later.)Out of curiosity I looked at:
src/modules/helpers/test.ts
. If I get it right, thetest()
helper logic lives here. Unfortunately the promise handling logic is wrapped withc8 ignore
comments. Hm.. Might be I miss something, but at first glance it does not like these lines are not reachable."Coverage 100%" badge looks beautiful, but now for me it feels misleading. The high coverage rate was one of the aspects why I decided to migrate to Poku. Please consider updating the badge with actual coverage information.
The text was updated successfully, but these errors were encountered: