Skip to content

Commit

Permalink
Disable test cache to run all tests every time
Browse files Browse the repository at this point in the history
Build and test times are still short enough and especially the
integration tests should be run every time.
  • Loading branch information
magiconair committed Apr 8, 2022
1 parent 6bb1cf2 commit 962060b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 962060b

Please sign in to comment.