Skip to content

Add unit tests for cmd/version#3454

Merged
camilamacedo86 merged 2 commits intooperator-framework:masterfrom
jberkhahn:version_tests
Jul 17, 2020
Merged

Add unit tests for cmd/version#3454
camilamacedo86 merged 2 commits intooperator-framework:masterfrom
jberkhahn:version_tests

Conversation

@jberkhahn
Copy link
Copy Markdown
Contributor

Description of the change:
Add unit tests for cmd/version. Also includes a small refactor, putting the cmd logic into a run() method so it can be tested.

Motivation for the change:
Ongoing work as part of #3246

Comment thread cmd/operator-sdk/version/cmd_test.go Outdated
Copy link
Copy Markdown
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

One nit then LGTM

@jberkhahn
Copy link
Copy Markdown
Contributor Author

@estroz done

@jberkhahn jberkhahn force-pushed the version_tests branch 3 times, most recently from 3cdff46 to af27c1f Compare July 17, 2020 21:32
Co-authored-by: Eric Stroczynski <estroczy@redhat.com>
Copy link
Copy Markdown
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

Great 👍
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2020
@camilamacedo86 camilamacedo86 merged commit 25b8054 into operator-framework:master Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants