-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Inaccurate test coverage might be caused by emojis #10936
Comments
I get a rust panic.
Seems pretty clear that the coverage checker is doing char mapping expecting byte chars, vs graphemes |
I got a panic as well:
|
Reported an upstream issue, waiting for response. |
This was referenced Jan 11, 2022
Closed
This was referenced Mar 21, 2022
This should be soon fixed by denoland/deno_ast#88 |
This was referenced May 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am having an issue where the output of☺️
deno coverage
appears inaccurate. I was able to narrow it down to a minimal example; instructions below. I hope it is reproducible. The problem goes away if the emojis or the unused functionh
are removed. Removing a single emoji removes line 2 from the coverage report, but still inaccurately keeps line 3. I have not tested it with other emojisThis is the
mod.ts
file:This is the
mod_test.ts
file:These are the shell commands:
deno test --coverage=.cov deno coverage .cov rm -rf .cov
This is the output of
deno coverage
. As far as I understand it, line 2 and 3 should be covered:This is the output of
deno --version
:The text was updated successfully, but these errors were encountered: