Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support white background in coverage reports (#109) #109

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export GOPATH ?= $(shell $(GO) env GOPATH)
export GOBIN ?= $(GOPATH)/bin

# Setup go-make version to use desired build and config scripts.
GOMAKE_DEP ?= github.com/tkrop/[email protected].105
GOMAKE_DEP ?= github.com/tkrop/[email protected].106
INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto
# Request targets from go-make targets target.
TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.105
0.0.106
2 changes: 1 addition & 1 deletion config/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export GOPATH ?= $(shell $(GO) env GOPATH)
export GOBIN ?= $(GOPATH)/bin

# Setup go-make version to use desired build and config scripts.
GOMAKE_DEP ?= github.com/tkrop/[email protected].105
GOMAKE_DEP ?= github.com/tkrop/[email protected].106
INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto
# Request targets from go-make targets target.
TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \
Expand Down
14 changes: 10 additions & 4 deletions config/Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ go-pkg = $(shell awk -v mode="$(2)" -v filter="$(3)" \


# Setup go-make to use desired build and config scripts.
GOMAKE_DEP := github.com/tkrop/[email protected].105
GOMAKE_DEP := github.com/tkrop/[email protected].106
GOMAKE_MAKEFILE := $(realpath $(firstword $(MAKEFILE_LIST)))
GOMAKE_MAKEFILES := $(GOMAKE_MAKEFILE) \
$(wildcard Makefile.vars) $(wildcard Makefile.ext)
Expand Down Expand Up @@ -782,7 +782,7 @@ $(addprefix git-create-,$(COMMIT_CONVENTION)):: git-create-%:
if [ -z "$${BRANCH}" ]; then BRANCH="update-deps"; fi; \
$(call git-message,$*,1); \
$(GIT) checkout -B "$${BRANCH}" && \
ARGS="" $(GIT) commit --signoff --message "$${MESSAGE}" && \
ARGS="" $(GIT) commit --signoff --message="$${MESSAGE}" && \
$(GIT) push --set-upstream origin "$${BRANCH}" || \
$(GIT) checkout $${BRANCH}; exit 0;
#@ <message> # commits the current change set using the given message with current issue.
Expand Down Expand Up @@ -954,7 +954,13 @@ test-clean::
test-cover::
@FILE=$$(ls -Art "$(TEST_ALL)" "$(TEST_UNIT)" \
"$(TEST_BENCH)" 2>/dev/null); \
$(GO) tool cover -html="$${FILE}"; \
$(GO) tool cover -o "$${FILE}.html" -html="$${FILE}"; \
if [ $(ARGS) == "white" ]; then \
sed -i 's/black/whitesmoke/g' "$${FILE}.html"; \
fi; \
sensible-browser "$${FILE}.html";

# $(GO) tool cover -html="$${FILE}"; \

#@ upload the test coverage report to codacy.
test-upload::
Expand Down Expand Up @@ -1408,7 +1414,7 @@ BUILD_ARCH ?= $(shell $(GO) env GOARCH)
main-pkg = $(patsubst $(1)=%,%,$(firstword $(filter $(1)=%,$(COMMANDS_PKG))))

# Functions and variables to propagate versions to build commands.
LD_CONFIG_PATHS ?= main $(shell $(GO) list ./... | grep "config$$")
LD_CONFIG_PATHS ?= main # $(shell $(GO) list ./... | grep "config$$")
ld-flag = $(addprefix -X ,$(addsuffix .$(1),$(LD_CONFIG_PATHS)))
ld-flags = $(call ld-flag,Version=$(BUILD_VERSION)) \
$(call ld-flag,Revision=$(shell $(GIT) rev-parse HEAD)) \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.23.2
require (
github.com/golang/mock v1.6.0
github.com/stretchr/testify v1.9.0
github.com/tkrop/go-config v0.0.5
github.com/tkrop/go-config v0.0.7
github.com/tkrop/go-testing v0.0.21
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tkrop/go-config v0.0.5 h1:Cc/ewDnUU56okUpw6qnRSnFM74lKWU/q5SnEiBMAhF8=
github.com/tkrop/go-config v0.0.5/go.mod h1:3jzeJrvcWVDTZxd30rua8XpO8T946PHRu56kr269dd0=
github.com/tkrop/go-config v0.0.7 h1:pg5ueQcguf2YZALuC1xTnim/SePrCk2sqpZh1w8k6fM=
github.com/tkrop/go-config v0.0.7/go.mod h1:hYWKMPm014Xok/de7qLMLu3Kwy5Yer9yYi7q+3oOx1w=
github.com/tkrop/go-testing v0.0.21 h1:lCSLCqsa0KUKOjGOd5euUIpmctSZy9eO7e1pwe2ym2A=
github.com/tkrop/go-testing v0.0.21/go.mod h1:RFUX2nk7n4QPUN0doC4R0KS6PqeaK1vWUDy3tBtjjKQ=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
Expand Down
Loading