Skip to content

Commit

Permalink
cmd/testwrapper: apply results of all unit tests to coverage for all …
Browse files Browse the repository at this point in the history
…packages

This allows coverage from tests that hit multiple packages at once
to be reflected in all those packages' coverage.

Updates #cleanup

Signed-off-by: Percy Wegmann <percy@tailscale.com>
  • Loading branch information
oxtoacart committed Feb 21, 2024
1 parent d756622 commit 91a1019
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/testwrapper/testwrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ func main() {
goTestArgsWithCoverage,
fmt.Sprintf("-coverprofile=%v", coverageFile),
"-covermode=set",
"-coverpkg=./...",
)
}

Expand Down

0 comments on commit 91a1019

Please sign in to comment.