From 05b60da07c238a6c252f00ffbfb1659037777237 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Sat, 7 May 2016 13:04:28 -0700 Subject: [PATCH] Include the test coverage report in the output Inspired by: Nomad project --- scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index a892469f09..b05c6500e5 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -12,4 +12,4 @@ go build -o $TEMPDIR/consul || exit 1 # Run the tests echo "--> Running tests" -go list ./... | grep -v ^github.com/hashicorp/consul/vendor/ | PATH=$TEMPDIR:$PATH xargs -n1 go test ${GOTEST_FLAGS:-} +go list ./... | grep -v '^github.com/hashicorp/consul/vendor/' | PATH=$TEMPDIR:$PATH xargs -n1 go test ${GOTEST_FLAGS:--cover -timeout=360s}