for (var test in caseResults) {
if (caseResults[test] !== true) {
num_failing++;
- failures.push(testCase + '.' + test + ' failed');
+ failures.push(testCase + '.' + test);
} else {
// console.log(testCase + '.' + test + ' passed');
num_passing++;
if (num_failing !== 0) {
console.log('FAIL');
phantom.exit();
+ } else {
+ console.log('PASS');
}
- console.log('PASS');
phantom.exit();
// This is not yet reliable enough to be useful: