Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lior Tamari committed Jul 15, 2017
1 parent 1b584bc commit fdddef9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _cgo_gotypes.go
_cgo_export.*

_testmain.go

*.coverprofile
*.exe
*.test
.DS_STORE
Expand Down
13 changes: 10 additions & 3 deletions scripts/run_units.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ echo "Setting up ginkgo and gomega"
go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega

cd local
echo "Starting unit tests for local"
ginkgo -r
echo "Setting up coverage"
go get github.com/mattn/goveralls
go get github.com/modocache/gover

echo "Run unit tests"
ginkgo -r -cover

echo "Report coverage"
gover
goveralls -coverprofile=gover.coverprofile #-repotoken $COVERALLS_TOKEN

1 comment on commit fdddef9

@shay-berman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.