From 4d4fd5fb13533ac2d536b9f2d0476029e34c64e1 Mon Sep 17 00:00:00 2001 From: apostasie Date: Wed, 29 May 2024 20:20:33 -0700 Subject: [PATCH] State how to run a single integration test Signed-off-by: apostasie --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 36d9bbe1897..82fb8741216 100644 --- a/README.md +++ b/README.md @@ -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.