Skip to content

Commit 2f66118

Browse files
Jake ChampionJakeChampion
authored andcommitted
ci: group test failures separately to make it easier to see all the test failures without having to scroll thousands of lines of output
1 parent 9a97fc1 commit 2f66118

File tree

1 file changed

+7
-5
lines changed
  • integration-tests/js-compute

1 file changed

+7
-5
lines changed

integration-tests/js-compute/test.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,17 @@ for (const result of results) {
201201
failed.push(result.reason)
202202
}
203203
}
204+
core.endGroup()
204205

205206
if (failed.length) {
206207
process.exitCode = 1;
207-
console.log(white, `\nFailed tests:\n`, white);
208-
}
208+
core.startGroup('Failed tests')
209+
210+
for (const result of failed) {
211+
console.log(red, cross, result, white);
212+
}
209213

210-
for (const result of failed) {
211-
console.log(red, cross, result, white);
214+
core.endGroup()
212215
}
213216

214217

@@ -218,7 +221,6 @@ if (!local && failed.length) {
218221
core.notice(`You can debug the service on ${domain}`)
219222
}
220223
}
221-
core.endGroup()
222224

223225
if (!local && !failed.length) {
224226
const teardownPath = join(fixturePath, 'teardown.js')

0 commit comments

Comments
 (0)