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
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