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

Rename /test --> /integration_test #236

Merged

Conversation

ahmetb
Copy link
Member

@ahmetb ahmetb commented Jul 2, 2019

  • move directory
  • remove 'krew' subpackage (merge with main package)
  • make the package _test.go-only, by merging /test/krew package
  • fix a bug with run-integration-tests.sh where it silently failed when the
    binary file didn't exist (due to readlink failing inside the subshell).
  • use testutil.TempDir() in the integration tests (per validate-code-patterns)

Fixes #229.
/assign @corneliusweig

- move directory
- remove 'krew' subpackage (merge with main package)
- make the package _test.go-only, by merging /test/krew package
- fix a bug with run-integration-tests.sh where it silently failed when the
  binary file didn't exist (due to readlink failing inside the subshell).
- use testutil.TempDir() in the integration tests (per validate-code-patterns)

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 2, 2019
@k8s-ci-robot

This comment has been minimized.

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 2, 2019
@codecov-io

This comment has been minimized.

Copy link
Contributor

@corneliusweig corneliusweig left a comment

Choose a reason for hiding this comment

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

Looks good. You found a way to keep the test code out of the business code :).
Have you also thought about splitting the test file into smaller units for each subcommand, as #229 suggests?

@ahmetb
Copy link
Member Author

ahmetb commented Jul 2, 2019

I was gonna do that in another PR.
Wanna /lgtm?

@corneliusweig
Copy link
Contributor

Sure
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 2, 2019
@k8s-ci-robot k8s-ci-robot merged commit bd48083 into kubernetes-sigs:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: rename dirs/files to make integration tests clear
4 participants