Skip to content

Conversation

@jan-ferdinand
Copy link
Member

@jan-ferdinand jan-ferdinand commented Jun 26, 2025

Convince all dependencies and tests that they should run on wasm32 architectures.

TODO

Supersedes #265.

dan-da and others added 5 commits June 26, 2025 10:48
This adds the necessary Cargo.toml magic for `cargo test` to build tests
correctly, both #[test] and #[proptest].

However the wasm test harness ignores #[test] and #[proptest] so tests
are not actually run in that environment.

The source files will need to be modified to make the tests visible to
wasm test harness in a future commit.
annotates tests to indicate they should be compiled for wasm32 target
by decorating with #[wasm_bindgen_test] when target_arch = wasm32.
It remains 32 on 64 bit systems.

This avoids isize::MAX overflow for 32 bit systems and fixes a failing test case
Relies on test-strategy version strictly greater than v0.4.1.

Intended as a fixup for commit “test: tests run in wasm32 test harness”
@coveralls
Copy link

Coverage Status

coverage: 97.988%. remained the same
when pulling da64453 on wasm_tests
into 1aeb2a2 on master.

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.

4 participants