Skip to content

Commit dab86f4

Browse files
committed
Remove files from the test coverage results
1 parent 6746592 commit dab86f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ else
120120
TESTCMD = -run $(RUNTEST)
121121
endif
122122

123-
BLOCKLIST='/tests/'
123+
BLOCKLIST='/tests/|mock_|example'
124124
COVERAGE_FILE='coverage.txt'
125125

126126
coverage: build-all
127-
PATH="${PWD}:${PATH}" go test $$(go list ./... | grep -v $(BLOCKLIST)) \
127+
PATH="${PWD}:${PATH}" go test $$(go list ./... | grep -vE $(BLOCKLIST)) \
128128
$(TESTCMD) \
129129
-count=1 \
130130
-cover \

0 commit comments

Comments
 (0)