massa icon indicating copy to clipboard operation
massa copied to clipboard

Tests: easy build

Open sydhds opened this issue 3 years ago • 2 comments

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)

sydhds avatar Sep 20 '22 13:09 sydhds

perfect !

damip avatar Sep 20 '22 14:09 damip

The CI in the massa-sc-template repository builds a minimal helloworld example.

qdrn avatar Sep 26 '22 12:09 qdrn

Done in : https://github.com/massalabs/massa/pull/3150

AurelienFT avatar Nov 23 '22 16:11 AurelienFT