Skip to content

Commit

Permalink
rm test files from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Aug 23, 2024
1 parent c1f4171 commit b987ed3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,9 @@ unit:

.PHONY: coverage
coverage: test-large
go tool covdata textfmt -i="$(COV_INTEGRATION_DIR),$(COV_UNIT_DIR)" -o=$(COVERAGE_DIR)/total.cov
go tool cover -func=$(COVERAGE_DIR)/total.cov
go tool covdata textfmt -i="$(COV_INTEGRATION_DIR),$(COV_UNIT_DIR)" -o=$(COVERAGE_DIR)/tmp.cov
go tool cover -func=$(COVERAGE_DIR)/tmp.cov
grep -v 'tests/' $(COVERAGE_DIR)/tmp.cov > $(COVERAGE_DIR)/total.cov

PHONY: view-coverage
view-coverage: $(COVERAGE_DIR)/total.cov
Expand Down

0 comments on commit b987ed3

Please sign in to comment.