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

Experimental test coverage support #4060

Merged
merged 1 commit into from
Aug 11, 2024
Merged

Conversation

daxpedda
Copy link
Collaborator

This PR adds experimental test coverage support facilitated by minicov and by Hacken OÜ finding out all the necessary hacks to make this work.

The feature requires nightly and is enabled by using cfg(wasm_bindgen_unstable_test_coverage), for more information see the guide I added in the PR.

Thank you @aDogCalledSpot for the initial implementation which I adopted here.
Thank you @njelich for pioneering and documenting all this.

Fixes #2276.
Fixes #3774.
Replaces #3782.

@aDogCalledSpot
Copy link

Thanks for taking the time for this! I unfortunately had to move to a different project and was never able to finish this. Good to see it being picked up though <3

@daxpedda daxpedda merged commit 402dae7 into rustwasm:main Aug 11, 2024
34 checks passed
@njelich
Copy link

njelich commented Aug 15, 2024

@daxpedda Nice work. Happy to see this implemented :)

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

Successfully merging this pull request may close these issues.

[Proposal] Capture coverage information in wasm-pack test Code Coverage in wasm-bindgen-test?
3 participants