Skip to content

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

Merged
dgageot merged 3 commits intomasterfrom
tejal29-log-error
Apr 18, 2019
Merged

Use RunOrFailOutput instead of RunOrFail to see the error logs in test#1976
dgageot merged 3 commits intomasterfrom
tejal29-log-error

Conversation

@tejal29
Copy link
Copy Markdown
Contributor

@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
Copy Markdown

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.

tejal29 added 2 commits April 17, 2019 19:34
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