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

Try out getting code coverage from e2e test #620

Open
juliev0 opened this issue Mar 2, 2025 · 1 comment
Open

Try out getting code coverage from e2e test #620

juliev0 opened this issue Mar 2, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@juliev0
Copy link
Collaborator

juliev0 commented Mar 2, 2025

Summary

I'd like to ultimately be able to derive total code coverage for all of our tests combined, including both unit tests and e2e tests (and merge them, and ideally have our CI generate that).

This article describes how to generate a binary for your code which can create code coverage. First step is to try creating that binary, create a Dockerfile which uses it, use that to generate a Docker image, and try it out in place of our standard Numaplane image (or alternatively use the same image as we normally do but with a different command).

Then see if you can create code coverage when running one of the e2e tests.

One option is to get the file produced from the container and copy it to your local machine using kubectl cp: https://botkube.io/learn/copying-files-with-kubectl-cp


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

@juliev0 juliev0 added the enhancement New feature or request label Mar 2, 2025
@juliev0
Copy link
Collaborator Author

juliev0 commented Mar 5, 2025

Originally, my thought was that we'd do this for GED week, but I think it's desired to have it sooner than that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants