-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add tests for skaffold init walk flow. #1809
Conversation
7174184
to
ace4a83
Compare
Codecov Report
@@ Coverage Diff @@
## master #1809 +/- ##
=========================================
+ Coverage 49.21% 49.52% +0.3%
=========================================
Files 166 166
Lines 7293 7298 +5
=========================================
+ Hits 3589 3614 +25
+ Misses 3355 3335 -20
Partials 349 349
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few style nits. Sorry that it makes it more painful for you to get started. I wish we had a style guide.
In this change: 1. Refactor walk into its own function 2. Add sample directory structure and tests.
t.Run(test.description, func(t *testing.T) { | ||
testDir, cleanUp := testutil.NewTempDir(t) | ||
rootDir := testDir.Root() | ||
defer cleanUp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: defer cleanUp()
should always be called as soon as we get the cleanup
@tejal29 approved with a nits |
As we support other helm and kustomize deployers in
skaffold init
flow, walk will become more complex.Refactoring it out and adding some tests.