app/assets/javascripts/konacha/runner.js in konacha-2.0.0.beta3 vs app/assets/javascripts/konacha/runner.js in konacha-2.0.0
- old
+ new
@@ -33,10 +33,12 @@
};
Mocha.reporters.Base.call(this, runner);
runner.on('start', function() {
- Konacha.events = [];
+ Konacha.events = [
+ {event:'start', testCount:runner.total, data:{}}
+ ];
});
runner.on('suite', function(suite) {
if (suite.fullTitle() && suite.fullTitle().length > 0)
Konacha.events.push({event:'suite', data:createSuiteObject(suite), type:'suite'});