diff --git a/Makefile b/Makefile index 0c46f8d49eb..04aad5e9c93 100644 --- a/Makefile +++ b/Makefile @@ -59,8 +59,10 @@ install-tools: crypto/relic/build check-go-version .PHONY: unittest unittest: + # test some packages with Relic library and data race detection enabled + GO111MODULE=on go test -coverprofile=$(COVER_PROFILE) -covermode=atomic $(if $(JSON_OUTPUT),-json,) -race --tags relic ./access/... ./consensus/... ./model/... ./state/... ./storage/... ./utils/... # test all packages with Relic library enabled - GO111MODULE=on go test -coverprofile=$(COVER_PROFILE) -covermode=atomic $(if $(JSON_OUTPUT),-json,) --tags relic ./... + GO111MODULE=on go test -coverprofile=$(COVER_PROFILE) -covermode=atomic $(if $(JSON_OUTPUT),-json,) --tags relic ./cmd... ./engine/... ./fvm/... ./ledger/... ./module/... ./network/... $(MAKE) -C crypto test $(MAKE) -C integration test