wasi-module-sdk-go/integration/README.md

13 lines
521 B
Markdown
Raw Permalink Normal View History

2023-05-08 13:21:31 +00:00
# Integration module
The integration module is meant as a helper to blackbox test a WASI module.
It's a shortcut to instantiate and execute a module in the context of buildr.
The workflow basically looks like this:
1. Compile module e.g. with tinygo to `*.wasm` file
1. Create a `integration.Host` (with `integration.NewHost(...)` function)
1. Specify the scenario (category, type, ...)
1. Execute the module
A very basic example can be found in the [`hello_world_go` example](../examples/hello_world_go/main_test.go)