diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-25 06:56:00 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-25 06:56:00 +0400 |
commit | 9d61e7fd1f776dc1258c0fbbd77ef45ae6a1f013 (patch) | |
tree | 69f378ba4ee4f9ff712fbf366565fc528eeecd16 /tests/javascript/testrunner.js | |
parent | effabcce52c46b853417a8e543c899913916cd24 (diff) |
refs #4225 output testname, testmodule and error message in case of a failure
Diffstat (limited to 'tests/javascript/testrunner.js')
-rw-r--r-- | tests/javascript/testrunner.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/javascript/testrunner.js b/tests/javascript/testrunner.js index 5953d01d44..b5a5c50f87 100644 --- a/tests/javascript/testrunner.js +++ b/tests/javascript/testrunner.js @@ -47,6 +47,12 @@ page.onResourceReceived = function() { window.phantomResults = obj; }); + QUnit.log(function(obj) { + if (!obj.result) { + console.log("Test failed in: '" + obj.module + " / " + obj.name + "' Error: " + obj.message); + } + }); + window.phantomAttached = true; }); } |