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

Add test coverage for cmd/docker-env #1150

Merged
merged 1 commit into from Feb 22, 2017
Merged

Conversation

r2d4
Copy link
Contributor

@r2d4 r2d4 commented Feb 19, 2017

First of a few PRs to try to get our test coverage from 30% to at least 60%

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 19, 2017
},
{
shell: "emacs",
expected: `;; Run this command to configure your shell:
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we move these to constants so we don't have them defined twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

made them constants. I was hoping to do it in a cleaner way, but the ShellConfig struct probably needs to be reworked if its going to be any cleaner. I also moved the usage hint to just be constants, because I don't think its worth the complexity to continue to have them configurable

@r2d4 r2d4 force-pushed the env-tests branch 2 times, most recently from 3c3ecdd to 115970e Compare February 19, 2017 21:37
@codecov-io
Copy link

Codecov Report

Merging #1150 into master will increase coverage by 4.01%.
The diff coverage is 95.34%.

@@            Coverage Diff             @@
##           master    #1150      +/-   ##
==========================================
+ Coverage   31.35%   35.36%   +4.01%     
==========================================
  Files          46       46              
  Lines        2092     2081      -11     
==========================================
+ Hits          656      736      +80     
+ Misses       1305     1210      -95     
- Partials      131      135       +4
Impacted Files Coverage Δ
cmd/minikube/cmd/env.go 68% <95.34%> (+64.32%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffcccbd...7aacced. Read the comment docs.

@r2d4 r2d4 merged commit 7f13944 into kubernetes:master Feb 22, 2017
@r2d4 r2d4 deleted the env-tests branch February 22, 2017 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ready-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants