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

Measuring test coverage from compiled wasm #2

Open
gilengel opened this issue Sep 23, 2022 · 0 comments
Open

Measuring test coverage from compiled wasm #2

gilengel opened this issue Sep 23, 2022 · 0 comments

Comments

@gilengel
Copy link
Owner

Is your feature request related to a problem? Please describe.
Automatically testing with coverage Chama is currently only possible for unit tests that are compiled with x86-x64 toolchain. The default toolchain /target of Chama is WASM for which unfortunately coverage instructions are not available (missing support in wasm-bindgen).

Describe the solution you'd like
Having coverage information available with the normal toolset without any special configuration. It should work out of the box just call
wasm-pack test

Describe alternatives you've considered
There is not really an alternative. We could ignore the coverage for browser tests but this minimize the chance for us to convince potential developers of the quality of Chama.

Additional context
https://motley-coder.com/2019/03/31/webassembly-coverage/
https://github.com/Amanieu/minicov

rustwasm/wasm-bindgen#2276

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

1 participant