diff --git a/.gitignore b/.gitignore index e2240335..2579b5a3 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ _testmain.go *.prof .coverage +.coverage.html diff --git a/Justfile b/Justfile index 9bdae89c..3805be78 100644 --- a/Justfile +++ b/Justfile @@ -26,6 +26,9 @@ setup-dev: test-client: cd {{ CONFIG_API_DIR }} && go test -v ./... -race -covermode=atomic -coverprofile=.coverage +coverage-client: + cd {{ CONFIG_API_DIR }} && go tool cover -html=.coverage -o=.coverage.html + fmt-client: gofmt -w pkg/config-api-client @@ -44,6 +47,9 @@ lint-client: test: just test-client +coverage: + just coverage-client + lint: just lint-client @@ -51,4 +57,4 @@ fmt: just fmt-client clean: - find . -name ".coverage" -type f -delete + find . -name ".coverage*" -type f -delete