Run tests
You might want to try out the pre-written tests locally.

run ts-tests locally

To run the ts-tests (the test under ts-tests/ folder) locally, similar to launching the networks, it's possible to run them in either docker or binary mode:
1
make test-ts-docker-litentry
Copied!
or
1
# if on Linux
2
make test-ts-binary-litentry
3
4
# otherwise
5
./scripts/launch-local-binary.sh litentry path-to-polkadot-bin path-to-litentry-parachain-bin
6
./scripts/run-ts-test.sh
Copied!
Be sure to run the clean-up afterwards.
The make test-ts-* command above will also launch the dev network before running the test, so you don't have to do it again.
If you already have a running network, simply run ./scripts/run-ts-test.sh to execute ts-tests.

run runtime integration test

There're also integration tests for Litmus and Litentry runtime which are written in rust. To run them:
1
# for Litmus
2
cargo test --release -p litmus-parachain-runtime --lib
3
4
# for Litentry
5
cargo test --release -p litentry-parachain-runtime --lib
Copied!