"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var alsatian_core_1 = require("../core/alsatian-core");
var CliTestRunner = (function (_super) {
__extends(CliTestRunner, _super);
function CliTestRunner() {
_super.apply(this, arguments);
}
CliTestRunner.prototype.run = function (testSet, timeout) {
try {
var testRunPromise = _super.prototype.run.call(this, testSet, timeout);
testRunPromise.then(function (results) {
Iif (results.outcome === alsatian_core_1.TestOutcome.Error || results.outcome === alsatian_core_1.TestOutcome.Fail) {
process.exit(1);
}
else {
process.exit(0);
}
});
}
catch (error) {
process.stderr.write(error.message);
process.exit(1);
}
};
return CliTestRunner;
}(alsatian_core_1.TestRunner));
exports.CliTestRunner = CliTestRunner;
//# sourceMappingURL=cli-test-runner.js.map |