From 6ce1539bca4506a5a393e0be47c28ec84e7e5532 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Fri, 6 Nov 2015 13:28:34 +0100 Subject: [PATCH] Update coverall script --- testing/coverage/coverall | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/coverage/coverall b/testing/coverage/coverall index 54d6b44f0..1e98c2634 100755 --- a/testing/coverage/coverall +++ b/testing/coverage/coverall @@ -5,7 +5,8 @@ FAIL=0 function test_package { DIR="github.com/v2ray/v2ray-core/$1" DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',') - DEP=${DEP}$DIR + DEPTEST=$(go list -f '{{ join .TestImports "\n" }}' $DIR | grep v2ray | tr '\n' ',') + DEP=${DEP}${DEPTEST}$DIR go test -coverprofile=coversingle.out -coverpkg=$DEP $DIR || FAIL=1 if [ -f coversingle.out ]; then cat coversingle.out | grep -v "mode: set" >> coverall.out