File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ TIMEOUT = 60
28
28
29
29
.PHONY : precommit ci
30
30
precommit : dependabot-check license-check lint build examples test-default
31
- ci : precommit check-clean-work-tree test-with- coverage
31
+ ci : precommit check-clean-work-tree test-coverage
32
32
33
33
# Tools
34
34
@@ -114,9 +114,11 @@ test-coverage:
114
114
for dir in $( ALL_COVERAGE_MOD_DIRS) ; do \
115
115
echo " $( GO) test -coverpkg=./... -covermode=$( COVERAGE_MODE) -coverprofile=" $(COVERAGE_PROFILE ) " $$ {dir}/..." ; \
116
116
(cd " $$ {dir}" && \
117
- $(GO ) test -coverpkg=./... -covermode=$(COVERAGE_MODE ) -coverprofile=" $( COVERAGE_PROFILE) " ./... && \
118
- $(GO ) tool cover -html=coverage.out -o coverage.html); \
119
- [ -f "$${dir}/coverage.out" ] && cat "$${dir}/coverage.out" >> coverage.txt; \
117
+ $(GO ) list ./... \
118
+ | grep -v third_party \
119
+ | xargs $(GO ) test -coverpkg=./... -covermode=$(COVERAGE_MODE ) -coverprofile=" $( COVERAGE_PROFILE) " && \
120
+ $(GO ) tool cover -html=coverage.out -o coverage.html); \
121
+ [ -f " $$ {dir}/coverage.out" ] && cat " $$ {dir}/coverage.out" >> coverage.txt; \
120
122
done ; \
121
123
sed -i.bak -e ' 2,$$ { /^mode: /d; }' coverage.txt
122
124
You can’t perform that action at this time.
0 commit comments