Commit beb33963 beb33963a1502020be3517eadebbda0890d9b957 by Nicolas Perriault

fixed --fail-fast wasn't displaying failure details

1 parent 046550d6
...@@ -139,10 +139,6 @@ var Tester = function Tester(casper, options) { ...@@ -139,10 +139,6 @@ var Tester = function Tester(casper, options) {
139 var valueKeys = Object.keys(failure.values), 139 var valueKeys = Object.keys(failure.values),
140 timeElapsed = new Date() - this.currentTestStartTime; 140 timeElapsed = new Date() - this.currentTestStartTime;
141 this.currentSuite.addFailure(failure, timeElapsed - this.lastAssertTime); 141 this.currentSuite.addFailure(failure, timeElapsed - this.lastAssertTime);
142 // check for fast failing
143 if (this.options.failFast) {
144 return this.terminate('--fail-fast: aborted all remaining tests');
145 }
146 this.lastAssertTime = timeElapsed; 142 this.lastAssertTime = timeElapsed;
147 // special printing 143 // special printing
148 if (failure.type) { 144 if (failure.type) {
...@@ -160,6 +156,10 @@ var Tester = function Tester(casper, options) { ...@@ -160,6 +156,10 @@ var Tester = function Tester(casper, options) {
160 valueKeys.forEach(function(name) { 156 valueKeys.forEach(function(name) {
161 this.comment(f(' %s: %s', name, utils.formatTestValue(failure.values[name], name))); 157 this.comment(f(' %s: %s', name, utils.formatTestValue(failure.values[name], name)));
162 }.bind(this)); 158 }.bind(this));
159 // check for fast failing
160 if (this.options.failFast) {
161 return this.terminate('--fail-fast: aborted all remaining tests');
162 }
163 }); 163 });
164 164
165 // casper events 165 // casper events
......