From 730c0b8cb1b442485a6b4b3c92102b74c4c7e897 Mon Sep 17 00:00:00 2001 From: Andrey Samokhvalov Date: Thu, 9 Mar 2017 07:39:09 +0300 Subject: [PATCH] tests: exclude integration test from coverage check --- gotest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gotest.sh b/gotest.sh index 8d6112c7..33dbbd9d 100755 --- a/gotest.sh +++ b/gotest.sh @@ -29,7 +29,8 @@ check_test_ports() { } # test_with_profile run test coverage on each subdirectories and merge the -# coverage profile. +# coverage profile. Be aware that we are skipping the integration tests, as the +# tool won't gather any useful coverage information from them. test_with_coverage_profile() { print "* Run tests with creating coverage profile:" check_test_ports @@ -40,6 +41,7 @@ test_with_coverage_profile() { for dir in $(find . -maxdepth 10 \ -not -path './.git*' \ -not -path '*/_*' \ + -not -path '.' \ -not -path './cmd*' \ -not -path './release*' \ -not -path './vendor*' \