Catch and report errors during osrm-contract tests.

This commit is contained in:
Daniel Patterson
2016-08-05 14:19:22 -07:00
parent b161e10b73
commit 176c2244ad
4 changed files with 59 additions and 18 deletions
+4
View File
@@ -30,6 +30,10 @@ module.exports = function () {
assert.equal(this.exitCode, parseInt(code));
});
this.Then(/^it should exit with code not (\d+)$/, (code) => {
assert.notEqual(this.exitCode, parseInt(code));
});
this.Then(/^stdout should contain "(.*?)"$/, (str) => {
assert.ok(this.stdout.indexOf(str) > -1);
});