@testomatio/reporter 0.4.3 → 0.4.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/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.4
2
+
3
+ * Fixed returning 0 exit code when a process fails when running tests in parallel via `start-test-run`. Previously was using the last exit code returned by a process. Currently prefers the highest exit code that was returned by a process.
4
+
1
5
  # 0.4.3
2
6
 
3
7
  * Added `TESTOMATIO_DISABLE_ARTIFACTS` env variable to disable publishing artifacts.
@@ -43,6 +43,8 @@ program
43
43
  return;
44
44
  }
45
45
 
46
+ let exitCode = 0;
47
+
46
48
  const testCmds = command.split(" ");
47
49
  console.log(APP_PREFIX, `🚀 Running`, chalk.green(command));
48
50
 
@@ -55,7 +57,9 @@ program
55
57
  "⚠️ ",
56
58
  `Runner exited with ${chalk.bold(code)}, report is ignored`
57
59
  );
58
- process.exitCode = code;
60
+
61
+ if (code > exitCode) exitCode = code;
62
+ process.exitCode = exitCode;
59
63
  });
60
64
 
61
65
  return;
@@ -71,7 +75,9 @@ program
71
75
  console.log(APP_PREFIX, emoji, `Runner exited with ${chalk.bold(code)}`);
72
76
  const status = code === 0 ? "passed" : "failed";
73
77
  client.updateRunStatus(status, true);
74
- process.exitCode = code;
78
+
79
+ if (code > exitCode) exitCode = code;
80
+ process.exitCode = exitCode;
75
81
  });
76
82
  });
77
83
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",