From 87253e448cc4c03b5cd629c1ccb513629d853dcd Mon Sep 17 00:00:00 2001 From: James Bardin Date: Mon, 23 Jan 2017 16:29:16 -0500 Subject: [PATCH] install packages for tests Running `go test -i` installs the requirements for a package's tests. This way when running the tests in batches of 4, we can cut the runtime in half be only compiling the dependencies once. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index c5e366b080..8ac89a8097 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ plugin-dev: generate # test runs the unit tests test:# fmtcheck errcheck generate + go test -i $(TEST) || exit 1 echo $(TEST) | \ xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4