-
Notifications
You must be signed in to change notification settings - Fork 594
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
Discuss re-structuring tests, adding envtest and introducing a guide for new tests #4099
Comments
I agree that the testing landscape can be a little bit confusing, so I think this effort is probably quite helpful for future contributors and maintainers. More envtest based coverage is compelling because it would enable us to exercise more controller code at something a bit closer to a unit test level, just a matter of putting in the time. Also just a reminder that we have a |
Food for thought Maybe
The above is not fully true in this case, because created pods, etc. don't do anything useful. But on the other hand, all K8s clients, etc. work with such an environment as with a normal cluster. Having the same interface as for Kind cluster for such |
That could definitely happen at some point. One note for this that I have is that for now, One more thing that got into my head is that users might be surprised when using it given the duck analogy that you brought up. If we end up needed |
I agree, we can iterate faster without it being in KTF, and we can work on making it more convenient directly in KIC repo. I think about a more streamlined API for |
In this case we'd need to come up with a structured API re-design, extracting said part of an interface, giving it a proper and meaningful name etc |
Problem statement
Currently we have 3 levels of tests: unit (with some usage of
envtest
already), integration tests, and e2e tests.This issue tracks the effort to
envtest
based tests (e.g. intest/envtest/
)add a guide helping developers too choose which type of tests to write when adding new onesGuide for developers: how to test KIC #4107Why Anything?
The text was updated successfully, but these errors were encountered: