Skip to content

Commit

Permalink
Add race to coveralls and modify test_go target in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Aug 25, 2016
1 parent 2993e87 commit a9e1eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ test_playground:
test_verbose:
go test -v -race -short ./...

# use test_verbose instead if you want to use this Makefile locally
test_go:
go test -race -short ./...
./coveralls.sh

test: test_fmt test_lint test_go

Expand Down
2 changes: 1 addition & 1 deletion coveralls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo "mode: count" > profile.cov

for dir in ${DIR_SOURCE};
do
go test -short -covermode=count -coverprofile=$dir/profile.tmp $dir
go test -short -race -covermode=count -coverprofile=$dir/profile.tmp $dir
if [ -f $dir/profile.tmp ]
then
cat $dir/profile.tmp | tail -n +2 >> profile.cov
Expand Down

0 comments on commit a9e1eb4

Please sign in to comment.