Files
scroll/docs/tests.md
2023-04-11 11:05:33 +08:00

835 B

Tests

bridge & coordinator

Prerequisite

  • rust
  • go1.18
  • docker

To run tests for bridge & coordinator, you would need to build some required docker images first.

make dev_docker # under repo root directory

Run the tests

go test -v -race -covermode=atomic scroll-tech/bridge/...
go test -tags="mock_verifier" -v -race -covermode=atomic scroll-tech/coordinator/...

You can also run some related tests (they are dependent to bridge & coordiantor) using

go test -v -race -covermode=atomic scroll-tech/database/...
go test -v -race -covermode=atomic scroll-tech/common/...

Contracts

You can find the unit tests in <REPO_DIR>/contracts/src/test/, and integration tests in <REPO_DIR>/contracts/integration-test/.