How is everyone organizing their test? I have unit tests that are dependent on a specific wasm but it feels dirty for some strange reason. I was trying to generate the wat file and maybe compile in the tests but for what we are doing doubt it will be worth the effort. How is everyone going about this?
spin
(Rust) has a lot of test code that gets compiled in build.rs
for tests
I wrote this internal crate to aid with that, which might be a useful starting point: https://github.com/fermyon/cargo-target-dep
(assuming Rust)
wasm-tools
has a lot of hand-written wat files for testing. wit-bindgen
compiles source code for various languages to wasm and runs tests against those.
Awesome these are all great I will take a look at them
Last updated: Dec 23 2024 at 13:07 UTC