Skip to content

Commit

Permalink
Merge pull request #270 from thandayuthapani/cover
Browse files Browse the repository at this point in the history
Enable coverage stats for UT
  • Loading branch information
volcano-sh-bot authored Jul 1, 2019
2 parents f681a27 + 842cbb2 commit 75674f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
script:
- make verify
- stage: UT Tests
before_script:
- go get github.com/mattn/goveralls
script:
- make unit-test
- make unit-test && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci
- stage: E2E Tests
before_script:
# Download kubectl
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ generate-code:
./hack/update-gencode.sh

unit-test:
go list ./... | grep -v e2e | xargs go test -v
go list ./... | grep -v e2e | xargs go test -v -cover -covermode atomic -coverprofile coverage.txt

e2e-test-kind:
./hack/run-e2e-kind.sh
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-------

[![Build Status](https://travis-ci.org/volcano-sh/volcano.svg?branch=master)](https://travis-ci.org/volcano-sh/volcano)
[![Coverage Status](https://coveralls.io/repos/github/volcano-sh/volcano/badge.svg?branch=master)](https://coveralls.io/github/volcano-sh/volcano?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/volcano-sh/volcano)](https://goreportcard.com/report/github.com/volcano-sh/volcano)
[![RepoSize](https://img.shields.io/github/repo-size/volcano-sh/volcano.svg)](https://github.com/volcano-sh/volcano)
[![Release](https://img.shields.io/github/release/volcano-sh/volcano.svg)](https://github.com/volcano-sh/volcano/releases)
Expand Down

0 comments on commit 75674f3

Please sign in to comment.