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.
@@ -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
- const notFoundLine = errors.find(s =>
235
- s.includes("test source file") &&
236
- s.includes("not found"));
237
- if (!!notFoundLine) {
238
- throw new Error(notFoundLine);
236
+ if (errors.length === 0) {
237
+ if (!haveGenericWarning) {
238
+ allErrors.push("One or more tests failed");
239
+ haveGenericWarning = true;
240
+ }
239
241
  } else {
240
- throw new Error(`One or more tests failed:\n${errors.join("\n")}`);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.119.3",
3
+ "version": "1.119.4",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"