Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (21 loc) · 1.01 KB

CONTRIBUTING.md

File metadata and controls

28 lines (21 loc) · 1.01 KB

Running integration tests

Integration tests are stored in tests directory.

You can run all tests with

./scripts/it.sh

To run individual tests you should first build all executables with ./scripts/build-all.sh and then run tests by name:

GOLEM_DOCKER_SERVICES=true GOLEM_TEST_TEMPLATES="./test-templates" cargo test --test integration worker_new_instance

With QUIET=true you can hide services output:

QUIET=true GOLEM_DOCKER_SERVICES=true GOLEM_TEST_TEMPLATES="./test-templates"  cargo test --test integration

This way tests will use configured versions of golem docker images. To run tests against the latest binaries without docker - see golem-services CONTRIBUTING.md

Running sharding tests

Same as integration tests, but with --test sharding instead of --test integration:

QUIET=true GOLEM_DOCKER_SERVICES=true GOLEM_TEST_TEMPLATES="./test-templates"  cargo test --test sharding