Skip to content

Commit

Permalink
WIP: Experimentation with coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Tucker <dave@socketplane.io>
  • Loading branch information
Dave Tucker committed Feb 3, 2015
1 parent ff50c1f commit f1b984e
Show file tree
Hide file tree
Showing 3 changed files with 529 additions and 8 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ build:
docker build -t socketplane/socketplane .

coverage:
sh tools/combine-coverage.sh
gover
goveralls -coverprofile=gover.coverprofile -service=$(CI_SERVICE) -repotoken=$(COVERALLS_TOKEN)
goveralls -coverprofile=combine.cover.out -service=$(CI_SERVICE) -repotoken=$(COVERALLS_TOKEN)

test:
fig up -d
Expand All @@ -18,11 +20,11 @@ test-all:
fig stop

test-local:
go test -covermode=count -test.short -coverprofile=daemon.coverprofile -coverpkg=./... ./daemon
go test -covermode=count -test.short -coverprofile=datastore.coverprofile -coverpkg=./... ./ipam
go test -covermode=count -test.short -coverprofile=socketplane.coverprofile
go test -test.short -coverprofile=daemon.coverprofile -coverpkg=./... ./daemon
go test -test.short -coverprofile=datastore.coverprofile -coverpkg=./... ./ipam
go test -test.short -coverprofile=socketplane.coverprofile

test-all-local:
go test -covermode=count -coverprofile=daemon.coverprofile -coverpkg=./... ./daemon
go test -covermode=count -coverprofile=datastore.coverprofile -coverpkg=./... ./ipam
go test -covermode=count -coverprofile=socketplane.coverprofile
go test -coverprofile=daemon.coverprofile -coverpkg=./... ./daemon
go test -coverprofile=datastore.coverprofile -coverpkg=./... ./ipam
go test -coverprofile=socketplane.coverprofile
Loading

0 comments on commit f1b984e

Please sign in to comment.