Install all dependencies from cargo.toml and package.json
To run the unit test, run the following command cargo test
, your unit test should be running by now.
- Run the following command to run the test
npx mocha --require @babel/register --require ts-node/register --recursive ./tests --extension \".ts\" --exit --timeout 20000
.
-
Ensure you have the substrate-contract node running in the background.
-
Enusre you have your docker application running.
-
Run the following command
docker build -t my-rust-environment:v1 .
. The following command would build the docker image. -
Run the folowing comand to finally run the test from docker
docker run -p 9945:9945 my-rust-environment:v1
.
Your E2E test should be running sucessfully now.