Skip to content

Commit

Permalink
covermode changed to count
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislavs committed Jul 3, 2017
1 parent bebac8e commit 64eda3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ before_install:
- go get github.com/mattn/goveralls

script:
- make lint
- make
- make test
- make test-cover

after_success:
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ endef
# run all tests with coverage
define test_cover_only
@echo "# running unit tests with coverage analysis"
@go test -coverprofile=${COVER_DIR}coverage_unit1.out ./logging/logrus
@go test -coverprofile=${COVER_DIR}coverage_unit2.out ./db/keyval/etcdv3
@go test -coverprofile=${COVER_DIR}coverage_unit3.out ./messaging/kafka/client
@go test -coverprofile=${COVER_DIR}coverage_unit4.out ./messaging/kafka/mux
@go test -coverprofile=${COVER_DIR}coverage_unit5.out ./utils/addrs
@go test -covermode=count -coverprofile=${COVER_DIR}coverage_unit1.out ./logging/logrus
@go test -covermode=count -coverprofile=${COVER_DIR}coverage_unit2.out ./db/keyval/etcdv3
@go test -covermode=count -coverprofile=${COVER_DIR}coverage_unit3.out ./messaging/kafka/client
@go test -covermode=count -coverprofile=${COVER_DIR}coverage_unit4.out ./messaging/kafka/mux
@go test -covermode=count -coverprofile=${COVER_DIR}coverage_unit5.out ./utils/addrs
@echo "# merging coverage results"
@cd vendor/github.com/wadey/gocovmerge && go install -v
@gocovmerge ${COVER_DIR}coverage_unit1.out ${COVER_DIR}coverage_unit2.out ${COVER_DIR}coverage_unit3.out ${COVER_DIR}coverage_unit4.out ${COVER_DIR}coverage_unit5.out > ${COVER_DIR}coverage.out
Expand Down

0 comments on commit 64eda3e

Please sign in to comment.