Skip to content

Commit

Permalink
test: use covermode count for test performance
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Feb 25, 2017
1 parent 77c352d commit a6936c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cover:
echo "" > profile.cov
go test -i ./...
for package in $(PACKAGES) ; do \
go test -covermode=atomic -coverprofile=tmp.cov gobot.io/x/$$package ; \
go test -covermode=count -coverprofile=tmp.cov gobot.io/x/$$package ; \
cat tmp.cov >> profile.cov ; \
rm tmp.cov ; \
done ; \
Expand Down
2 changes: 1 addition & 1 deletion ci/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go test -i ./...

for package in "${PACKAGES[@]}"
do
go test -covermode=atomic -coverprofile=tmp.cov gobot.io/x/$package
go test -covermode=count -coverprofile=tmp.cov gobot.io/x/$package
if [ $? -ne 0 ]
then
EXITCODE=1
Expand Down

0 comments on commit a6936c7

Please sign in to comment.