From 962060b441bca6d7ab9720125bb95233c6c04a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Schr=C3=B6der?= Date: Fri, 8 Apr 2022 09:26:38 +0200 Subject: [PATCH] Disable test cache to run all tests every time Build and test times are still short enough and especially the integration tests should be run every time. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0272bbe8..0291bcba 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,22 @@ +# GOFLAGS="-count=1" disables the test cache so that all tests are run every time. + all: test integration examples test: - go test -race ./... + GOFLAGS="-count=1" go test -race ./... lint: staticcheck ./... integration: - go test -race -v -tags=integration ./uatest/... + GOFLAGS="-count=1" go test -race -v -tags=integration ./uatest/... examples: go build -o build/ ./examples/... test-race: - go test -race ./... - go test -race -v -tags=integration ./uatest/... + GOFLAGS="-count=1" go test -race ./... + GOFLAGS="-count=1" go test -race -v -tags=integration ./uatest/... install-py-opcua: pip3 install opcua