coverexec

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Command coverexec runs one test binary for make test (go test -exec), moving its coverage output into a directory of its own under the one -test.gocoverdir names. make test then merges those directories.

Test binaries built with -coverpkg=<module>/... that link the same instrumented packages write the same covmeta.<hash> file name. In one shared directory, two that finish together each rename a temporary file onto that name (internal/coverage/cfile, emitMetaDataFile), and Windows refuses the second rename with "Access is denied" (issue 368).

coverexec <test binary> [args...]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL