Merge pull request #3070 from darfux/update-build-doc

BUILDING.md: update testing section
This commit is contained in:
Phil Estes 2019-03-06 08:53:38 -05:00 committed by GitHub
commit bfbd1d09c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,8 +220,7 @@ containerd --config config.toml
During the automated CI the unit tests and integration tests are run as part of the PR validation. As a developer you can run these tests locally by using any of the following `Makefile` targets: During the automated CI the unit tests and integration tests are run as part of the PR validation. As a developer you can run these tests locally by using any of the following `Makefile` targets:
- `make test`: run all non-integration tests that do not require `root` privileges - `make test`: run all non-integration tests that do not require `root` privileges
- `make root-test`: run all non-integration tests which require `root` - `make root-test`: run all non-integration tests which require `root`
- `make integration`: run all tests, including integration tests and those which require `root` - `make integration`: run all tests, including integration tests and those which require `root`. `TESTFLAGS_PARALLEL` can be used to control parallelism. For example, `TESTFLAGS_PARALLEL=1 make integration` will lead a non-parallel execution. The default value of `TESTFLAGS_PARALLEL` is **8**.
- `make integration-parallel`: run all tests (integration and root-required included) in parallel mode
To execute a specific test or set of tests you can use the `go test` capabilities To execute a specific test or set of tests you can use the `go test` capabilities
without using the `Makefile` targets. The following examples show how to specify a test without using the `Makefile` targets. The following examples show how to specify a test