File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5252- [ 782] ( https://github.com/umee-network/umee/pull/782 ) Add unit test to ` x/oracle/types/denom.go ` and ` x/oracle/types/keys.go ` .
5353- [ 786] ( https://github.com/umee-network/umee/pull/786 ) Add unit test to ` x/oracle/... ` .
5454- [ 798] ( https://github.com/umee-network/umee/pull/798 ) Increase ` x/oracle ` unit test coverage.
55+ - [ 803] ( https://github.com/umee-network/umee/pull/803 ) Add ` cover-html ` command to makefile.
5556
5657## [ v2.0.0] ( https://github.com/umee-network/umee/releases/tag/v2.0.0 ) - 2022-04-06
5758
Original file line number Diff line number Diff line change @@ -118,10 +118,11 @@ PACKAGES_UNIT=$(shell go list ./... | grep -v -e '/tests/e2e' -e '/tests/simulat
118118PACKAGES_E2E =$(shell go list ./... | grep '/e2e')
119119TEST_PACKAGES =./...
120120TEST_TARGETS := test-unit test-unit-cover test-race test-e2e
121+ TEST_COVERAGE_PROFILE =coverage.txt
121122
122123test-unit : ARGS=-timeout=10m -tags='norace'
123124test-unit : TEST_PACKAGES=$(PACKAGES_UNIT )
124- test-unit-cover : ARGS=-timeout=10m -tags='norace' -coverprofile=coverage.txt -covermode=atomic
125+ test-unit-cover : ARGS=-timeout=10m -tags='norace' -coverprofile=$( TEST_COVERAGE_PROFILE ) -covermode=atomic
125126test-unit-cover : TEST_PACKAGES=$(PACKAGES_UNIT )
126127test-race : ARGS=-timeout=10m -race
127128test-race : TEST_PACKAGES=$(PACKAGES_UNIT )
@@ -144,6 +145,11 @@ lint:
144145 @echo " --> Running linter"
145146 @go run github.com/golangci/golangci-lint/cmd/golangci-lint run --timeout=10m
146147
148+ cover-html : test-unit-cover
149+ @echo " --> Opening in the browser"
150+ @go tool cover -html=$(TEST_COVERAGE_PROFILE )
151+
152+
147153.PHONY : lint
148154
149155# ##############################################################################
You can’t perform that action at this time.
0 commit comments