coverage recipe

This commit is contained in:
Zach Ramsay 2018-02-20 21:13:27 +00:00
parent dfa9bc8117
commit c1b9721f89
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ TUTORIALS=$(shell find docs/guide -name "*md" -type f)
#test: test_unit test_cli test_tutorial #test: test_unit test_cli test_tutorial
test: test_unit # test_cli test: test_unit # test_cli
# Must be run in each package seperately for the visualization
# Added here for easy reference
# coverage:
# go test -coverprofile=c.out && go tool cover -html=c.out
test_unit: test_unit:
@rm -rf examples/basecoin/vendor/ @rm -rf examples/basecoin/vendor/
@go test $(PACKAGES) @go test $(PACKAGES)