Commit e580b7d6 e580b7d65bd0c9ebdc9af9d436b51243c63e3390 by Nicolas Perriault

moved test results rendering to assert.js

1 parent 46210431
......@@ -29,5 +29,12 @@ phantom.Casper.extend({
assertEvalEquals: function(fn, expected, message) {
return this.assertEquals(this.evaluate(fn), expected, message);
},
renderResults: function() {
this.echo("==========================================");
var total = testResults.passed + testResults.failed;
this.echo(total + ' tests executed, ' + testResults.passed + ' passed, ' + testResults.failed + ' failed.');
this.exit();
}
});
\ No newline at end of file
......
......@@ -45,8 +45,5 @@ casper.then(function(self) {
});
casper.run(function(self) {
self.echo("==========================================");
var total = testResults.passed + testResults.failed;
self.echo(total + ' tests executed, ' + testResults.passed + ' passed, ' + testResults.failed + ' failed.');
self.exit();
self.renderResults();
});
......