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

feat: handle coverage from supported binaries #1158

Merged
merged 5 commits into from
Jul 2, 2024
Merged

Conversation

Reecepbcups
Copy link
Member

closes: #1130

Summary

When testing in ICT, support code coverage output from the binary.

Integration

ExternalGoCoverDir = "/tmp/my-app-coverage"

// before interchaintest.NewBuiltinChainFactory
cfgA.WithCodeCoverage()

// after test runs
t.Cleanup(func() {
    dockerutil.CopyCoverageFromContainer(ctx, t, client, chain.GetNode().ContainerID(), chain.HomeDir(), ExternalGoCoverDir)
    _ = ic.Close()
})

Copy link

vercel bot commented Jun 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Jul 1, 2024 5:37am

@Reecepbcups Reecepbcups marked this pull request as ready for review July 1, 2024 14:28
@Reecepbcups Reecepbcups requested a review from a team as a code owner July 1, 2024 14:28
@Reecepbcups Reecepbcups requested a review from pharr117 July 1, 2024 14:28
@Reecepbcups Reecepbcups merged commit 2aba342 into main Jul 2, 2024
19 checks passed
@Reecepbcups Reecepbcups deleted the reece/code-coverage branch July 2, 2024 16:15
@Reecepbcups
Copy link
Member Author

ty!!

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

Successfully merging this pull request may close these issues.

Handle coverage from instrumented binaries
2 participants