Skip to content

Commit

Permalink
add coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo2204 committed Apr 5, 2021
1 parent 6a0996c commit 6434998
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@ start-test-deps: schema-update start-deps assets drop-test create-test-db migrat
run-test:
@SKIP_ELASTIC_LOG=true ginkgo -nodes=1 -r --cover .

test-coverage coverage: run-test
coverage:
@echo "mode: count" > coverage-all.out
@bash -c 'for f in $$(find . -name "*.coverprofile"); do tail -n +2 $$f >> coverage-all.out; done'

test-coverage: test coverage

test-coverage-html coverage-html: test-coverage
@go tool cover -html=coverage-all.out

Expand Down

0 comments on commit 6434998

Please sign in to comment.