9 releases
0.2.0 | Sep 24, 2024 |
---|---|
0.1.4 | Sep 23, 2024 |
0.0.0 | Apr 4, 2019 |
#227 in Testing
942 downloads per month
Used in west-sys
42KB
335 lines
Description
west
is a testing framework, which lets you test your WebAssembly applications natively and using all your existing development tools (e.g. debuggers).
Go
west
provides west-bindgen-go
utility, which walks the complete AST of your application and generates a binding file, which replaces functions with wasmimport
directives, normally provided by the runtime, by a native implementation, which invokes those imports on a WebAssembly component (harness) running in an embedded Wasmtime instance. This lets you test you applications without changing implementation and achieving full test coverage.
Design
west
uses cabish
to read and write values over FFI to pass to embedded Wasmtime instance.
Dependencies
~36–51MB
~1M SLoC