Skip to content

feat: Show the percentage of file coverage #235

@deniskorbakov

Description

@deniskorbakov

Hi, thanks for the project

Problem:

The output lacks the percentage of coverage of each individual file

Current output:

Total coverage threshold (70%) satisfied:       FAIL
Total test coverage: 63.3% (451/712)

Files with uncovered lines:
  file:                                 uncovered lines:
  internal/config/config.go             54-57 66-69 74-77 97-100 107-110 120-123 140-143
  internal/config/validate.go           9-11 24-26 41-43 49-51
  internal/crypto/crypto.go             31-33 51-54 78-81 94-97
  internal/logger/console.go            20-22 34-35 41-42 48-49 55-56

(Example case) What kind of conclusion would you like to see:

Total coverage threshold (70%) satisfied:       FAIL
Total test coverage: 63.3% (451/712)

Files with uncovered lines:
file:                        file coverage:    uncovered lines:
internal/config/config.go    51.3%             54-57 66-69 74-77 97-100 107-110 120-123 140-143
internal/config/validate.go  87.5%             9-11 24-26 41-43 49-51
internal/crypto/crypto.go    80.1%             31-33 51-54 78-81 94-97
internal/logger/console.go   78.2%             20-22 34-35 41-42 48-49 55-56

If you like the offer, I can offer my help and try to close this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions