Merge pull request #1221 from weaveworks/1220_include_test_dir_coverage

include directory of test code in coverage
This commit is contained in:
Paul Bellamy committed 2015-07-28 10:05:16 +01:00
commit e3f0565517
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ for dir in $TESTDIRS; do
GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
if [ -n "$SLOW" ]; then
COVERPKGS=$(go list -f '{{join .Deps "\n"}}' $dir | grep "weaveworks" | paste -s -d,)
COVERPKGS=$((go list $dir; go list -f '{{join .Deps "\n"}}' $dir | grep "weaveworks") | paste -s -d,)
output=$(mktemp $coverdir/unit.XXXXXXXXXX)
GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output -coverpkg=$COVERPKGS"
fi