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

Refactor pkg/server/server_test.go #55

Open
kyasbal opened this issue Feb 4, 2025 · 0 comments
Open

Refactor pkg/server/server_test.go #55

kyasbal opened this issue Feb 4, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@kyasbal
Copy link
Member

kyasbal commented Feb 4, 2025

pkg/server/server_test.go has been playing important part of testing on KHI.
It sends requests and verify responses one by one, but the test code was born at the very beginning of this project. The list of test cases becomes very long and there is many adhoc codes.
Now it's a little time consuming to add a new test when we add a new API. We need to seek a new way of the manner to write these endpoint tests.

https://github.com/GoogleCloudPlatform/khi/blob/main/pkg/server/server_test.go#L230

@kyasbal kyasbal added the enhancement New feature or request label Feb 4, 2025
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

1 participant