Skip to content

Commit

Permalink
what is going on?
Browse files Browse the repository at this point in the history
  • Loading branch information
ddl-ebrown committed May 26, 2024
1 parent c677cb5 commit 0110261
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 @@ -54,7 +54,9 @@ test: fmt lint test-all
.PHONY: test-coverage
test-coverage: build ## Run all tests and generate a coverage report
$(touch .env)
gotestsum --format=pkgname-and-test-fails --format-hivis -- -covermode=count -coverpkg=./... -coverprofile=$(SRC_DIR)coverage/cover.out.tmp -v ./... --tags="unit"
mkdir -p $(SRC_DIR)coverage
gotestsum --format=pkgname-and-test-fails --format-hivis --junitfile $(SRC_DIR)test/unit-tests.xml -- -covermode=count -coverpkg=./... -coverprofile=$(SRC_DIR)coverage/cover.out.tmp -v ./... --tags="unit"
ls -R $(SRC_DIR)

# Stripping out API docs and internal/app/mocks from the coverage report
cat $(SRC_DIR)coverage/cover.out.tmp | grep -v "api/docs.go" | grep -v "mock_" > $(SRC_DIR)coverage/cover.out
Expand Down

0 comments on commit 0110261

Please sign in to comment.