Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
include directory of test code in coverage
Browse files Browse the repository at this point in the history
Fixes #1220.
  • Loading branch information
rade committed Jul 27, 2015
1 parent 536ce99 commit 9a91b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/units.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a91b3c

Please sign in to comment.