go-integcov

command module
v0.0.0-...-ab78c98 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

go-integcov

  1. Use ghcr.io/yolocs/go-integcov as the base image for your Go app in integration test. The image was built from cgr.dev/chainguard/static with the go-integcov being the only additional binary.

  2. When building your Go app for integration test, add flag -cover. See https://go.dev/testing/coverage/.

  3. When starting you Go app in integration test, use go-integcov to wrap your program. E.g. go-integcov my-app -flag1 -flag2.

  4. Set env var INTEGCOV_STORAGE to gs://a-gcs-bucket-you-own/a-folder.

  5. After you integration test is completed, copy all the files from gs://a-gcs-bucket-you-own/a-folder and use go tool covdata to understand your integration test coverage. See https://go.dev/testing/coverage/.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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