From c13288e68f121994577e94010c3cc332a1fb0908 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 9 Oct 2014 11:39:50 +0000 Subject: [PATCH] Improve detection of failures, part of MKWS-282 1. count number of failed tests 2. check if we run tests at all --- test/phantom/run-jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phantom/run-jasmine.js b/test/phantom/run-jasmine.js index 396417b..ef0577a 100644 --- a/test/phantom/run-jasmine.js +++ b/test/phantom/run-jasmine.js @@ -136,7 +136,7 @@ page.open(url, function (status) { html: $("html").html(), duration: $(".duration").text(), error_msg: error_msg, - failed: list.length, + failed: (list.length > 0 || !passing), passing: passing }; }) -- 1.7.10.4