https://github.com/proxy-wasm/test-framework
WebAssembly for Proxies (test framework)
https://github.com/proxy-wasm/test-framework
Last synced: about 1 year ago
JSON representation
WebAssembly for Proxies (test framework)
- Host: GitHub
- URL: https://github.com/proxy-wasm/test-framework
- Owner: proxy-wasm
- License: apache-2.0
- Created: 2020-08-05T09:49:51.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T17:01:03.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T19:02:41.034Z (almost 2 years ago)
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 16
- Watchers: 9
- Forks: 13
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# WebAssembly for Proxies (test framework)
The Proxy-Wasm ABI and associated SDKs enable developers to build extensions in
any of the supported languages and deliver the plugins as WebAssembly modules at
run-time. This repository contains a standalone runner which serves as a test
harness and simulator for Proxy-Wasm extensions, enabling quick testing in a
controlled environment.
### Examples
The basic usage of this test-framework is provided in the examples/ folder which
contains mocking of proxy-wasm modules provided in the proxy-wasm-rust-sdk
examples/.
## Supported
- Low-level expectation setting over most host-side functions that are consumed
immediately
- Checking of residual low-level expectations after wasm-function call has
completed
- Various high-level (simulator defaults) expectations that persist across
several host-function calls as opposed to being immediately consumed
- Expectation setting over returns from functions exposed on the proxy-wasm
module
## In Progress
- Complete default implementation for all host-side functions
- Low-level expectation setting for the remaining host-side functions
- High-level expectation setting for the remaining host-side functions
- Integration test examples