Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-11-25 06:56:00 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-25 06:56:00 +0400
commit9d61e7fd1f776dc1258c0fbbd77ef45ae6a1f013 (patch)
tree69f378ba4ee4f9ff712fbf366565fc528eeecd16 /tests/javascript/testrunner.js
parenteffabcce52c46b853417a8e543c899913916cd24 (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.js6
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;
});
}