Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Go 1.20 support for coverage testing of programs #64

Open
majewsky opened this issue Feb 2, 2023 · 0 comments
Open

use Go 1.20 support for coverage testing of programs #64

majewsky opened this issue Feb 2, 2023 · 0 comments

Comments

@majewsky
Copy link
Contributor

majewsky commented Feb 2, 2023

Ref: https://go.dev/doc/go1.20

Go 1.20 supports collecting code coverage profiles for programs (applications and integration tests), as opposed to just unit tests.

To collect coverage data for a program, build it with go build's -cover flag, then run the resulting binary with the environment variable GOCOVERDIR set to an output directory for coverage profiles.

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

No branches or pull requests

1 participant