Improve detection of failures, part of MKWS-282
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 9 Oct 2014 11:39:50 +0000 (11:39 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 9 Oct 2014 11:39:50 +0000 (11:39 +0000)
1. count number of failed tests
2. check if we run tests at all

test/phantom/run-jasmine.js

index 396417b..ef0577a 100644 (file)
@@ -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
             };
         })