Wasmite: Webassembly is the future but now it has a testing toolchain
Project description
What is the Wasmite project
Since WebAssembly is the future of the web. I decide to create Wasmite, a python package for unit-testing your wasm or wat code. Wasmite is based on wasmer and the python standard library package unittest. Documentation for can be found here: documentation for unittest and documentation for wasmer
This project was formerly an extension of my Rust/Python Web framework Wasp, so some section of the code may refer to it's earlier name (Native)
Wasmite looks for tests in python files whose names start with test_*.py and runs every test_* function it discovers. The testing folder has more examples.
Having any problems or questions create a issue, i will be happy to help :)
Installation
This project requires python 3 and doesn't support 3.9
pip install wasmite
Project Goals:
- Import wasm or wat module successfully
- Access functions within module
- Type checking of parameters and the result of functions
- Release to PyPi for public to use
- Allow WebAssembly ...
- Import Python functions
- Import Global Instances
- Import Memory Instances
- More complex examples in testing folder
- Receive community on how to improve
Examples:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.