@@ -121,6 +121,7 @@ func TestRenderChart(t *testing.T) {
121
121
helmPath := lookupHelm (t )
122
122
err := updateHelmDependencies (t , helmPath , ".." )
123
123
require .NoError (t , err , "failed to build Helm dependencies" )
124
+
124
125
for _ , tc := range testCases {
125
126
tc := tc
126
127
t .Run (tc .name , func (t * testing.T ) {
@@ -162,6 +163,9 @@ func TestUpdateGoldenFiles(t *testing.T) {
162
163
}
163
164
164
165
helmPath := lookupHelm (t )
166
+ err := updateHelmDependencies (t , helmPath , ".." )
167
+ require .NoError (t , err , "failed to build Helm dependencies" )
168
+
165
169
for _ , tc := range testCases {
166
170
if tc .expectedError != "" {
167
171
t .Logf ("skipping test case %q with render error" , tc .name )
@@ -171,7 +175,8 @@ func TestUpdateGoldenFiles(t *testing.T) {
171
175
valuesPath := tc .valuesFilePath ()
172
176
templateOutput , err := runHelmTemplate (t , helmPath , ".." , valuesPath )
173
177
if err != nil {
174
- t .Logf ("Command output:\n %s" , templateOutput )
178
+ t .Logf ("error running `helm template -f %q`: %v" , valuesPath , err )
179
+ t .Logf ("output: %s" , templateOutput )
175
180
}
176
181
require .NoError (t , err , "failed to run `helm template -f %q`" , valuesPath )
177
182
0 commit comments