massa
massa copied to clipboard
Tests: easy build
Intro
A lot of unit test use wasm file built from small AssemblyScript files. We can found those in the following repo:
- massa (example: massa/massa-execution-worker/src/tests/wasm/sources/execution_error/main.ts)
- massa-sc-runtime: (example: massa-sc-runtime/wasm/src/caller.ts)
There are no easy way to build these wasm files for now (especially for Rust dev).
Todo
- [ ] Create a new repo (massa-unit-tests-src ?) with everything to build asc (using the new massa-as-sdk)
- [ ] Move src into this new repo
- [ ] Add a Doc (how to setup / build / ...)
- [ ] Add a CI where we auto build the wasm files and ideally propose a PR in the appropriate repo to update the wasm file (to avoid desync)
perfect !
The CI in the massa-sc-template repository builds a minimal helloworld example.
Done in : https://github.com/massalabs/massa/pull/3150