Skip to content

Commit 3c5165f

Browse files
authored
Merge pull request #3040 from apostasie/dev-README
State how to run a single integration test
2 parents b926584 + 4d4fd5f commit 3c5165f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ docker build -t test-integration --target test-integration .
268268
docker run -t --rm --privileged test-integration
269269
```
270270

271+
To run a single integration test (in this case, `image_inspect_test`):
272+
273+
`go test -exec sudo -v ./cmd/nerdctl/main_test.go ./cmd/nerdctl/image_inspect_test.go `
274+
271275
#### Running integration test suite against Docker
272276

273277
Run `go test -exec sudo -v ./cmd/nerdctl/... -args -test.target=docker` to ensure that the test suite is compatible with Docker.

0 commit comments

Comments
 (0)