This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from golemcloud/contributing_docs
integration tests in CONTRIBUTING.md
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Running integration tests | ||
|
||
Integration tests are stored in `tests` directory. | ||
|
||
You can run all tests with | ||
```shell | ||
./scripts/it.sh | ||
``` | ||
|
||
To run individual tests you should first build all executables with `./scripts/build-all.sh` and then run tests by name: | ||
```shell | ||
GOLEM_DOCKER_SERVICES=true GOLEM_TEST_TEMPLATES="./test-templates" cargo test worker_new_instance | ||
``` | ||
|
||
With `QUIET=true` you can hide services output: | ||
```shell | ||
QUIET=true GOLEM_DOCKER_SERVICES=true GOLEM_TEST_TEMPLATES="./test-templates" cargo test | ||
``` | ||
|
||
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](https://github.com/golemcloud/golem-services/blob/main/CONTRIBUTING.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters