9 releases

0.2.0 Sep 24, 2024
0.1.4 Sep 23, 2024
0.0.0 Apr 4, 2019

#279 in Testing

Download history 139/week @ 2024-09-12 653/week @ 2024-09-19 119/week @ 2024-09-26 31/week @ 2024-10-03

487 downloads per month
Used in west-sys

Apache-2.0 WITH LLVM-exception

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

~38–52MB
~1M SLoC