Skip to content

Commit

Permalink
Merge pull request #3040 from apostasie/dev-README
Browse files Browse the repository at this point in the history
State how to run a single integration test
  • Loading branch information
AkihiroSuda authored Jun 1, 2024
2 parents b926584 + 4d4fd5f commit 3c5165f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ docker build -t test-integration --target test-integration .
docker run -t --rm --privileged test-integration
```

To run a single integration test (in this case, `image_inspect_test`):

`go test -exec sudo -v ./cmd/nerdctl/main_test.go ./cmd/nerdctl/image_inspect_test.go `

#### Running integration test suite against Docker

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

0 comments on commit 3c5165f

Please sign in to comment.