Skip to content

Commit 9d3c289

Browse files
pchilamergify[bot]
authored andcommitted
Add -coverpkg option when running unit test to calculate coverage across packages (#9913)
(cherry picked from commit 7c3157b)
1 parent d84233d commit 9d3c289

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev-tools/mage/gotest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func GoTest(ctx context.Context, params GoTestArgs) error {
257257
testArgs = append(testArgs,
258258
"-covermode=atomic",
259259
"-coverprofile="+params.CoverageProfileFile,
260+
"-coverpkg=./...", // needed to calculate the coverage across the elastic-agent packages
260261
)
261262
}
262263

0 commit comments

Comments
 (0)