-
Notifications
You must be signed in to change notification settings - Fork 214
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
empty coverage for wasm on chrome #2278
Comments
by the way, the test preformance difference without coverage and with coverage for wasm is |
I don't think this is expected to work at this time, I am not sure we have the information that would be needed to collect coverage on wasm. cc @kevmoo do you know who to ask about this?
Are you separately configuring wasm as the compiler in your
It definitely is expected to take longer, how much longer I don't know, but essentially every piece of code that is executed has to be tracked etc, coverage is very expensive to collect. |
platforms: [vm, chrome]
compilers: [dart2wasm]
on_platform:
chrome: {timeout: 10x} This really is a dart2wasm problem. |
Open questions/issues:
|
We do produce source maps. Need to chat with @osa1 and @mkustermann for details. |
Yes.
I'm working on implementing a Wasm stack trace mapper in
I don't know the details of |
@osa1 so for now the best would be to get test coverage by dart2js or is it realistic to hope for a fix on the chrome side any soon? |
@konsultaner I've reached out to the relevant team to get the Chromium issue triaged, but they seem to be away until the 18th. I will update when I hear back from them. |
@konsultaner see https://g-issues.chromium.org/issues/354020953#comment4. It looks like Chrome won't be supporting coverage for Wasm code any time soon. I briefly looked at coverage handling of this package and there doesn't seem to be anything specific to JS, it should handle Wasm coverage output as well. I've updated the In any case, we can get back to this once Chrome starts generating coverage info of Wasm code. I suspect it will just work without any changes. |
@osa1 thanks for your investigation. Seems like we have to wait for the feature. Thx 😇 |
To anyone reading this issue: I guess showing to the chrome team, that there is demand for wasm code coverage support, is the best way to let it happen. Go to: https://issues.chromium.org/issues/354020953 sign in with your google account and hit the +1 on the top right corner, if you are interested into this feature. |
See the guy who filed that issue? I wonder who |
In my project https://github.com/konsultaner/connectanum-dart I use a vm and a wasm ci chain to produce a coverage output. I started to split up the two coverage outputs and found out that the wasm output is empty.
I use this command to start the wasm coverage:
dart run test -p chrome --coverage=./coverage_chrome --timeout=5m --concurrency=1
I could reproduce it im my github action and locally on my linux system:
The text was updated successfully, but these errors were encountered: