Skip to content

Commit

Permalink
Merge pull request #56 from dev4devs-com/improve-tests
Browse files Browse the repository at this point in the history
improve cover tests
  • Loading branch information
camilamacedo86 committed Nov 30, 2019
2 parents 63b50bf + 1c875a8 commit e195ca0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
working_directory: /go/src/github.com/dev4devs-com/postgresql-operator

docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13
environment:
GO111MODULE=on
steps:
Expand All @@ -20,13 +20,12 @@ jobs:
- run: make code-build-linux
- run: GO111MODULE=off go get github.com/mattn/goveralls
- run: make test
- run: make integration-cover
- run: /go/bin/goveralls -coverprofile=coverage-all.out -service=circle-ci -repotoken=jFmmyeYiX3zI1sj2jDCsR1QYwIrL33Xij
- run: /go/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken=jFmmyeYiX3zI1sj2jDCsR1QYwIrL33Xij

image_push_master:
working_directory: /go/src/github.com/dev4devs-com/postgresql-operator
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13
environment:
GO111MODULE=on
steps:
Expand All @@ -45,7 +44,7 @@ jobs:
image_release:
working_directory: /go/src/github.com/dev4devs-com/postgresql-operator
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13
environment:
GO111MODULE=on
steps:
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,10 @@ gen: ## Run SDK commands to generated-upddate the project
##############################

##@ Tests

.PHONY: test
test: ## Run unit test
@echo Running tests:
go test -cover $(TEST_PKGS)
go test -coverprofile=coverage.out -covermode=count -count=1 -short ./cmd/... ./pkg/...

.PHONY: integration-cover
integration-cover: ## Run coveralls
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ replace (
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.0.0-20190918203421-225f0541b3ea
k8s.io/metrics => k8s.io/metrics v0.0.0-20190918202012-3c1ca76f5bda
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.0.0-20190918201353-5cc279503896
)
)

0 comments on commit e195ca0

Please sign in to comment.