Skip to content

Commit

Permalink
disable test cache the idiomatic way
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Apr 13, 2022
1 parent 37d37b4 commit c98cc7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# GOFLAGS="-count=1" disables the test cache so that all tests are run every time.
# go test -count=1 disables the test cache so that all tests are run every time.

all: test integration examples

test:
GOFLAGS="-count=1" go test -race ./...
go test -count=1 -race ./...

lint:
staticcheck ./...

integration:
GOFLAGS="-count=1" go test -race -v -tags=integration ./uatest/...
go test -count=1 -race -v -tags=integration ./uatest/...

examples:
go build -o build/ ./examples/...

test-race:
GOFLAGS="-count=1" go test -race ./...
GOFLAGS="-count=1" go test -race -v -tags=integration ./uatest/...
go test -count=1 -race ./...
go test -count=1 -race -v -tags=integration ./uatest/...

install-py-opcua:
pip3 install opcua
Expand Down

0 comments on commit c98cc7a

Please sign in to comment.