Skip to content

[init refactor] organize tests #3542

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

Merged

Conversation

balopat
Copy link
Contributor

@balopat balopat commented Jan 20, 2020

This should come after #3538 is merged, it's built on top of that.

  • It reorganizes the tests from init_test.go to the relevant file's tests.
  • adds tests for stripTags that is a new method introduced as I'm starting to take DoInit apart

I know...this is a bit bigger but I am close to getting to a sensible organization of the code.
Also, after merging #3538 this should become smaller.

@codecov
Copy link

codecov bot commented Jan 20, 2020

Codecov Report

Merging #3542 into master will increase coverage by 0.18%.
The diff coverage is 68.65%.

Impacted Files Coverage Δ
pkg/skaffold/initializer/init.go 0% <0%> (ø) ⬆️
pkg/skaffold/initializer/prompt.go 0% <0%> (ø) ⬆️
pkg/skaffold/initializer/builders.go 94.2% <100%> (+0.76%) ⬆️
pkg/skaffold/initializer/config.go 100% <100%> (ø) ⬆️
pkg/skaffold/initializer/analyze.go 87.23% <93.33%> (+4.88%) ⬆️
pkg/skaffold/build/jib/sync.go 61.53% <0%> (ø)
pkg/skaffold/schema/defaults/defaults.go 94.38% <0%> (+0.12%) ⬆️
...affold/kubernetes/portforward/kubectl_forwarder.go 68.29% <0%> (+2.43%) ⬆️

@balopat
Copy link
Contributor Author

balopat commented Jan 21, 2020

Thank you for all the reviews @dgageot! You are a rock star! ⭐️

Copy link
Contributor

@dgageot dgageot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a few nits

@balopat balopat merged commit 7dc8e10 into GoogleContainerTools:master Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants