-
Notifications
You must be signed in to change notification settings - Fork 54
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
Update controllers package tests #190
Comments
How do we plan to handle the |
That's a great call out. Maybe we should only have the controller unit tests using ginkgo, and the rest on go test? |
Unit tests don't need |
I'd like to eliminate Ginkgo entirely. I find it difficult to understand (BeforeEach, JustBeforeEach, BeforeSuite) and have an easier time reasoning about standard go tests (optionally table tests). |
@ncdc I'm not a big fan of Ginkgo too. Do you know any good examples of codebases which use standard go tests for e2e/integration tests? If yes - could you please share links? I can't think of any and in my head it looks even worse than with Ginkgo (setup, tear down). |
kcp |
Fix operator-framework#190 Signed-off-by: Todd Short <[email protected]>
Fix operator-framework#190 Signed-off-by: Todd Short <[email protected]>
Fix operator-framework#190 Signed-off-by: Todd Short <[email protected]>
Fix operator-framework#190 Signed-off-by: Todd Short <[email protected]>
Fix operator-framework#190 Signed-off-by: Todd Short <[email protected]>
Fix operator-framework#190 Signed-off-by: Todd Short <[email protected]>
* Remove ginkgo from internal/controller unit tests Fix #190 Signed-off-by: Todd Short <[email protected]> * Always allocate cl Signed-off-by: Todd Short <[email protected]> * Move admissions tests to tables Signed-off-by: Todd Short <[email protected]> * Use random name for operators Signed-off-by: Todd Short <[email protected]> * Parallelize the admission tests Signed-off-by: Todd Short <[email protected]> * Consolidate client/reconciler initialization Signed-off-by: Todd Short <[email protected]> --------- Signed-off-by: Todd Short <[email protected]>
Description
Follow the testing guidelines set forth in #188 and refactor the controllers package unit tests. Be sure to fix all
**/*_test.go
files.Pre-Conditions
Acceptance Criteria
The text was updated successfully, but these errors were encountered: