Skip to content

Commit 266910d

Browse files
committed
warn before error reporting
Helps visually
1 parent 3d400d0 commit 266910d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

script/test

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,14 @@ async.parallel(testSuitesToRun, function (err, results) {
276276
} else {
277277
const failedSteps = results.filter(({exitCode}) => exitCode !== 0)
278278

279-
for (const {step} of failedSteps) {
280-
console.error(`Error! The '${step}' test step finished with a non-zero exit code`)
279+
if (failedSteps.length > 0) {
280+
console.warn("\n \n *** Reporting the errors that happened in all of the tests: *** \n \n")
281+
for (const {step} of failedSteps) {
282+
console.error(`Error! The '${step}' test step finished with a non-zero exit code`)
283+
}
284+
process.exit(1)
281285
}
282286

283-
process.exit(failedSteps.length === 0 ? 0 : 1)
287+
process.exit(0)
284288
}
285289
})

0 commit comments

Comments
 (0)