diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5709b7f..9d90011 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -95,6 +95,24 @@ fix. Tests talk to an `httptest` server rather than to Yandex; look at Keep tests deterministic. If one needs to wait, give it a timeout measured in milliseconds, not seconds, so the suite stays fast. +### Against the real API + +`integration_test.go` checks the library against Yandex itself. It is behind +a build tag, so `go test ./...` skips it. Run it with a token of an account +you can spare: + +```sh +YANDEX_DISK_ACCESS_TOKEN=... go test -tags integration -run Integration -v ./ +``` + +It takes about two minutes and needs a few megabytes. Everything it creates +lives in a new `disk:/disk-it--