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

Use RunOrFailOutput instead of RunOrFail to see the error logs in test #1976

Merged
merged 3 commits into from
Apr 18, 2019

Conversation

tejal29
Copy link
Member

@tejal29 tejal29 commented Apr 18, 2019

… test.

Use RunOrFailOutput instead of RunOrFail to see the error logs in test.

… test.

Use `RunOrFailOutput` instead of `RunOrFail` to see the error logs in test.
@tejal29 tejal29 changed the title Use RunOrFailOutput instead of RunOrFail to see the error logs in… Use RunOrFailOutput instead of RunOrFail to see the error logs in test Apr 18, 2019
@codecov-io
Copy link

codecov-io commented Apr 18, 2019

Codecov Report

Merging #1976 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1976   +/-   ##
=======================================
  Coverage   52.94%   52.94%           
=======================================
  Files         183      183           
  Lines        7920     7920           
=======================================
  Hits         4193     4193           
  Misses       3327     3327           
  Partials      400      400

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 f26b906...e971436. Read the comment docs.

We use the test.description as test name  
```
t.Run(test.description, func(t *testing.T) {
```
Adding "-", makes it hard to run the test individually on command line and needs escaping.
```
 REMOTE_INTEGRATION=true go test -v github.com/GoogleContainerTools/skaffold/integration -run TestRun/Google_Cloud_Build_-_sub_folder
=== RUN   TestRun
--- PASS: TestRun (0.00s)
testing: warning: no tests to run
PASS
ok  	github.com/GoogleContainerTools/skaffold/integration	(cached) [no tests to run]
```
These tests were not correctly passing the test.args set in the test case.
@dgageot dgageot merged commit 7ddbe57 into master Apr 18, 2019
@tejal29 tejal29 deleted the tejal29-log-error branch April 30, 2019 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants