Skip to content

Commit 72ff2ec

Browse files
committed
Separate Makefile command for running tests with coverage.
1 parent aba4e46 commit 72ff2ec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ install:
2121
script:
2222
- make lint
2323
- vendorcheck ./...
24-
- make test
24+
- make test-with-coverage
2525

2626
after_script:
2727
- make golint

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ golint:
2323

2424
test:
2525
# TODO: When Go 1.9 is released vendor folder should be ignored automatically
26-
bash -c 'go list ./... | grep -v vendor | xargs -n1 go test -timeout=10s -race -coverprofile=coverage.txt -covermode=atomic'
26+
bash -c 'go list ./... | grep -v vendor | xargs -n1 go test -timeout=10s'
27+
28+
test-with-coverage:
29+
# TODO: When Go 1.9 is released vendor folder should be ignored automatically
30+
bash -c 'go list ./... | grep -v vendor | xargs -n1 go test -timeout=20s -race -coverprofile=coverage.txt -covermode=atomic'

0 commit comments

Comments
 (0)