From 68af8985555b23858905421e4c046aab5ad9cbef Mon Sep 17 00:00:00 2001 From: Olemis Lang Date: Wed, 22 Jan 2020 15:33:56 -0500 Subject: [PATCH] [ci] refs #279 - Run make test-data against temp coverage profile and merge with coverage output --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6396f18..4a6d09e2 100644 --- a/Makefile +++ b/Makefile @@ -267,7 +267,9 @@ test-core: ## Run tests for API core and helpers cat $(COVERAGETEMP) | grep -v '^mode: set$$' >> $(COVERAGEFILE) test-data: ## Run tests for data package - go test -coverprofile=src/data/coverage.out -timeout 30s github.com/fibercrypto/fibercryptowallet/src/data + go test -coverprofile=$(COVERAGETEMP) -timeout 30s github.com/fibercrypto/fibercryptowallet/src/data + cat $(COVERAGETEMP) | grep -v '^mode: set$$' >> $(COVERAGEFILE) + test-html-cover: go tool cover -html=$(COVERAGEFILE) -o $(COVERAGEPREFIX).html