mirror of https://github.com/status-im/go-waku.git
chore: make dynamic tests optional
This commit is contained in:
parent
c2ce8326ff
commit
4292b14ef4
6
Makefile
6
Makefile
|
@ -57,7 +57,7 @@ lint:
|
||||||
@golangci-lint --exclude=SA1019 run ./... --deadline=5m
|
@golangci-lint --exclude=SA1019 run ./... --deadline=5m
|
||||||
|
|
||||||
test:
|
test:
|
||||||
${GOBIN} test -timeout 300s ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp
|
${GOBIN} test ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp
|
||||||
cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE}
|
cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE}
|
||||||
${GOBIN} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV}
|
${GOBIN} tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV}
|
||||||
|
|
||||||
|
@ -158,6 +158,6 @@ start-ganache:
|
||||||
stop-ganache:
|
stop-ganache:
|
||||||
docker stop ganache-cli
|
docker stop ganache-cli
|
||||||
|
|
||||||
test-rln:
|
test-onchain:
|
||||||
go test -timeout 30s -v -count 1 github.com/status-im/go-waku/waku/v2/protocol/rln
|
${GOBIN} test -v -count 1 -tags="include_onchain_tests" github.com/status-im/go-waku/waku/v2/protocol/rln
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
//go:build include_onchain_tests
|
||||||
|
// +build include_onchain_tests
|
||||||
|
|
||||||
package rln
|
package rln
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue