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

WASM: add integration tests to CI #657

Open
seanmonstar opened this issue Sep 27, 2019 · 1 comment
Open

WASM: add integration tests to CI #657

seanmonstar opened this issue Sep 27, 2019 · 1 comment
Labels
pr-welcome The feature is welcome to be added, instruction should be found in the issue.

Comments

@seanmonstar
Copy link
Owner

No description provided.

@seanmonstar seanmonstar added the pr-welcome The feature is welcome to be added, instruction should be found in the issue. label Sep 27, 2019
@stevelr
Copy link
Contributor

stevelr commented Nov 13, 2020

I added a couple unit tests in PR #1084

To run tests locally, if you already have wasm-pack installed, use wasm-pack test --headless --firefox. To work in chrome (--headless --chrome), I needed to update chrome driver
(arch): "chromedriver", (apt-get install "chromium-chromedriver")

I haven't personally tried wasm with github actions yet, but instructions are here:
https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/continuous-integration.html#github-actions

After the line that downloads and runs init.sh, you might need to install chromedriver (on linux ci runner) with apt-get install chromium-chromedriver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-welcome The feature is welcome to be added, instruction should be found in the issue.
Projects
None yet
Development

No branches or pull requests

2 participants