forked from google/cadvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for running the integration tests.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
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
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,17 @@ | ||
# Integration Testing cAdvisor | ||
|
||
The cAdvisor integration tests can be found in `integration/tests`. These run queries on a running cAdvisor. To run these tests: | ||
|
||
``` | ||
$ godep go run integration/runner/runner.go -host=HOST -port=PORT | ||
``` | ||
|
||
this will build a cAdvisor from the current repository and start it on the target machine before running the tests. Note that `HOST` and `PORT` default to `localhost` and `8080` respectively. | ||
|
||
To simply run the tests against an existing cAdvisor: | ||
|
||
``` | ||
$ godep go test github.com/google/cadvisor/integration/tests/... -host=HOST -port=PORT | ||
``` | ||
|
||
Today We only support remote execution in Google Compute Engine since that is where we run our continuous builds. |