Update testing doc
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
7d8815ea70
commit
58de627782
|
@ -8,11 +8,11 @@ questions you may have as an aspiring Moby contributor.
|
||||||
Moby has two test suites (and one legacy test suite):
|
Moby has two test suites (and one legacy test suite):
|
||||||
|
|
||||||
* Unit tests - use standard `go test` and
|
* Unit tests - use standard `go test` and
|
||||||
[testify](https://github.com/stretchr/testify) assertions. They are located in
|
[gotestyourself/assert](https://godoc.org/github.com/gotestyourself/gotestyourself/assert) assertions. They are located in
|
||||||
the package they test. Unit tests should be fast and test only their own
|
the package they test. Unit tests should be fast and test only their own
|
||||||
package.
|
package.
|
||||||
* API integration tests - use standard `go test` and
|
* API integration tests - use standard `go test` and
|
||||||
[testify](https://github.com/stretchr/testify) assertions. They are located in
|
[gotestyourself/assert](https://godoc.org/github.com/gotestyourself/gotestyourself/assert) assertions. They are located in
|
||||||
`./integration/<component>` directories, where `component` is: container,
|
`./integration/<component>` directories, where `component` is: container,
|
||||||
image, volume, etc. These tests perform HTTP requests to an API endpoint and
|
image, volume, etc. These tests perform HTTP requests to an API endpoint and
|
||||||
check the HTTP response and daemon state after the call.
|
check the HTTP response and daemon state after the call.
|
||||||
|
|
Loading…
Reference in New Issue