Skip to content

Commit

Permalink
refactor: Ignore testutils for test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
  • Loading branch information
TerryHowe committed Jul 28, 2024
1 parent 33f5518 commit f35a8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ debug

# Custom
coverage.txt
coverage-all.txt
test/e2e/coverage.txt
**/covcounters.*
**/covmeta.*
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ LDFLAGS += -X $(PROJECT_PKG)/internal/version.GitTreeState=${GIT_DIRTY}

.PHONY: test
test: tidy vendor check-encoding ## tidy and run tests
$(GO_EXE) test -race -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
$(GO_EXE) test -race -v -coverprofile=coverage-all.txt -covermode=atomic -coverpkg=./... ./...
@grep -v testutil coverage-all.txt >coverage.txt; rm -f coverage-all.txt

.PHONY: teste2e
teste2e: ## run end to end tests
Expand Down

0 comments on commit f35a8a9

Please sign in to comment.