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

Testing WASM bindings #15

Open
fjarri opened this issue Nov 29, 2020 · 0 comments
Open

Testing WASM bindings #15

fjarri opened this issue Nov 29, 2020 · 0 comments
Assignees
Labels
CI Continuous integration tests Test suite WASM Related to WASM bindings

Comments

@fjarri
Copy link
Contributor

fjarri commented Nov 29, 2020

WASM bindings can be tested in two ways:

  • from the Rust side (see #[wasm_bindgen_test] attribute)
  • from the JS side

Do we need only one of those? Both? What JS testing library to use? How to call them from CI?

Testing from the Rust side will increase Rust code coverage. Testing from the JS side is closer to the user experience, but mostly we will be testing how well wasm-pack works, since we don't write any JS code directly. Would be nice to test at least the JS example though.

@fjarri fjarri added tests Test suite WASM Related to WASM bindings CI Continuous integration labels Nov 29, 2020
@vepkenez vepkenez self-assigned this Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration tests Test suite WASM Related to WASM bindings
Projects
None yet
Development

No branches or pull requests

2 participants