diff --git a/utils/testrunner/Reporter.js b/utils/testrunner/Reporter.js index 9edacdd2..3455b4e8 100644 --- a/utils/testrunner/Reporter.js +++ b/utils/testrunner/Reporter.js @@ -80,13 +80,13 @@ class Reporter { description = `${RED_COLOR}${RESET_COLOR}`; console.log(` ${workerId}: [${description}] ${test.fullName} (${formatTestLocation(test)})`); } - process.exit(2); + process.exitCode = 2; } _onFinished() { this._printTestResults(); const failedTests = this._runner.failedTests(); - process.exit(failedTests.length > 0 ? 1 : 0); + process.exitCode = failedTests.length > 0 ? 1 : 0; } _printTestResults() {