argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

Collect test coverage from e2e tests

Open crenshaw-dev opened this issue 1 month ago • 2 comments

Summary

Today we only collect coverage from unit tests. We should also collect coverage from e2e tests.

Motivation

It would be helpful to get a clearer idea of our complete coverage.

Proposal

New go versions support collecting coverage from running code. We could collect profiles from each of the components and merge them all with the unit coverage data. https://tip.golang.org/doc/go1.20#cover

crenshaw-dev avatar May 08 '24 20:05 crenshaw-dev

Looks like combining the outputs of the various tests won't be prohibitively difficult. https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/

crenshaw-dev avatar May 09 '24 14:05 crenshaw-dev