"Coverage 100%" badge is misleading #613
Replies: 7 comments 5 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
All is fine. This is only a badge (; By the way, I was thinking to recommend looking at |
Beta Was this translation helpful? Give feedback.
-
By the way, those |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Less formal, I don't want anyone to feel that way when using Poku, which is why I'm taking it so seriously 💙 |
Beta Was this translation helpful? Give feedback.
-
I appreciate the effort. Thank you. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions