diff options
author | Chris <ccbrown112@gmail.com> | 2017-11-13 13:59:51 -0600 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-11-13 11:59:51 -0800 |
commit | 865f9f83a7cf2f9eb1fe2735b6bd498f56486f50 (patch) | |
tree | 2554279f7682599ca69370557194dfa984557db3 /Makefile | |
parent | 1329aa51b605cb54ba9aae3a82a0a87b881fb7b3 (diff) | |
download | chat-865f9f83a7cf2f9eb1fe2735b6bd498f56486f50.tar.gz chat-865f9f83a7cf2f9eb1fe2735b6bd498f56486f50.tar.bz2 chat-865f9f83a7cf2f9eb1fe2735b6bd498f56486f50.zip |
Improve test coverage reporting / accuracy (#7819)
* improve test coverage reporting / accuracy
* handle absolute coverpaths
* move tests into multiple files
* rename codecov.yml (https://github.com/codecov/support/issues/426)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -318,18 +318,18 @@ do-cover-file: test-te: do-cover-file @echo Testing TE @echo "Packages to test: "$(TE_PACKAGES) - find . -name 'cprofile.out' -exec sh -c 'rm "{}"' \; + find . -name 'cprofile*.out' -exec sh -c 'rm "{}"' \; $(GO) test $(GOFLAGS) -run=$(TESTS) $(TESTFLAGS) -v -timeout=2000s -covermode=count -coverpkg=$(ALL_PACKAGES_COMMA) -exec $(ROOT)/scripts/test-xprog.sh $(TE_PACKAGES) - find . -name 'cprofile.out' -exec sh -c 'tail -n +2 {} >> cover.out ; rm "{}"' \; + find . -name 'cprofile*.out' -exec sh -c 'tail -n +2 {} >> cover.out ; rm "{}"' \; test-ee: do-cover-file @echo Testing EE ifeq ($(BUILD_ENTERPRISE_READY),true) @echo "Packages to test: "$(EE_PACKAGES) - find . -name 'cprofile.out' -exec sh -c 'rm "{}"' \; + find . -name 'cprofile*.out' -exec sh -c 'rm "{}"' \; $(GO) test $(GOFLAGS) -run=$(TESTS) $(TESTFLAGSEE) -p 1 -v -timeout=2000s -covermode=count -coverpkg=$(ALL_PACKAGES_COMMA) -exec $(ROOT)/scripts/test-xprog.sh $(EE_PACKAGES) - find . -name 'cprofile.out' -exec sh -c 'tail -n +2 {} >> cover.out ; rm "{}"' \; + find . -name 'cprofile*.out' -exec sh -c 'tail -n +2 {} >> cover.out ; rm "{}"' \; rm -f config/*.crt rm -f config/*.key endif |