add filename to babylon test errors

This commit is contained in:
Sebastian McKenzie 2015-10-05 16:40:55 +01:00
parent 3a89ee84ef
commit 95c9b2c8e0

View File

@ -11,7 +11,12 @@ _.each(fixtures, function (suites, name) {
suite(name + "/" + testSuite.title, function () {
_.each(testSuite.tests, function (task) {
test(task.title, !task.disabled && function () {
return runTest(task);
try {
return runTest(task);
} catch (err) {
err.message = task.actual.loc + ": " + err.message;
throw err;
}
});
});
});