Skip to content

Conversation

@joaopaulovieira
Copy link
Member

Changes

This PR improves the test workflow and coverage visibility for the project.

Makefile

  • Enhanced test target:
    • The test target now runs all tests with coverage enabled (go test ./... -coverprofile=coverage.out.tmp).
    • Filters out coverage results for /mocks/ to produce a cleaner coverage.out file.
    • Displays a coverage summary using go tool cover -func=coverage.out.
  • New target: local-coverage:
    • Runs the test target and generates an HTML coverage report (coverage.html).
    • Prints a message instructing the user to open the HTML file in their browser.

Outputs

local coverage report Screenshot 2026-01-18 at 22 42 56

How to Test

  • Run make test to see the coverage summary in the terminal.
  • Run make local-coverage to generate and view the HTML coverage report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants