Commit 53972350 authored by David Vorick's avatar David Vorick

Add integration and unit test cover commands

parent 5a0b70ca
......@@ -84,6 +84,20 @@ cover: clean REBUILD
&& go tool cover -html=cover/$$package.out -o=cover/$$package.html \
&& rm cover/$$package.out ; \
done
cover-integration: clean REBUILD
@mkdir -p cover/modules
@for package in $(pkgs); do \
go test -run=TestIntegration -tags='testing debug' -timeout=180s -covermode=atomic -coverprofile=cover/$$package.out ./$$package \
&& go tool cover -html=cover/$$package.out -o=cover/$$package.html \
&& rm cover/$$package.out ; \
done
cover-unit: clean REBUILD
@mkdir -p cover/modules
@for package in $(pkgs); do \
go test -run=TestUnit -tags='testing debug' -timeout=180s -covermode=atomic -coverprofile=cover/$$package.out ./$$package \
&& go tool cover -html=cover/$$package.out -o=cover/$$package.html \
&& rm cover/$$package.out ; \
done
# whitepaper builds the whitepaper from whitepaper.tex. pdflatex has to be
# called twice because references will not update correctly the first time.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment