zarro 1.119.3 → 1.119.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gulp-tasks/test-dotnet.js +11 -6
- package/package.json +1 -1
|
@@ -222,6 +222,8 @@ async function testAsDotnetCore(configuration, testProjects) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
function throwIfAnyFailed(testProcessResults) {
|
|
225
|
+
const allErrors = [];
|
|
226
|
+
let haveGenericWarning = false;
|
|
225
227
|
for (const result of testProcessResults) {
|
|
226
228
|
if (!result) {
|
|
227
229
|
continue;
|
|
@@ -231,16 +233,19 @@ function throwIfAnyFailed(testProcessResults) {
|
|
|
231
233
|
}
|
|
232
234
|
if (!!result.exitCode) {
|
|
233
235
|
const errors = (result.stderr || []);
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
if (errors.length === 0) {
|
|
237
|
+
if (!haveGenericWarning) {
|
|
238
|
+
allErrors.push("One or more tests failed");
|
|
239
|
+
haveGenericWarning = true;
|
|
240
|
+
}
|
|
239
241
|
} else {
|
|
240
|
-
|
|
242
|
+
allErrors.push(errors.join("\n"));
|
|
241
243
|
}
|
|
242
244
|
}
|
|
243
245
|
}
|
|
246
|
+
if (allErrors.length) {
|
|
247
|
+
throw new Error(`One or more test runs failed:\n\t${allErrors.join("\n\t")}`);
|
|
248
|
+
}
|
|
244
249
|
}
|
|
245
250
|
|
|
246
251
|
function logOverallResults(testResults) {
|