Skip to content

Commit

Permalink
feat: coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
1riatsila1 committed Aug 14, 2024
1 parent 7533e1c commit 8c51180
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ _testmain.go
*.prof

.coverage
.coverage.html
8 changes: 7 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -44,11 +47,14 @@ lint-client:
test:
just test-client

coverage:
just coverage-client

lint:
just lint-client

fmt:
just fmt-client

clean:
find . -name ".coverage" -type f -delete
find . -name ".coverage*" -type f -delete

0 comments on commit 8c51180

Please sign in to comment.