diff --git a/lib/testing/testrunner.js b/lib/testing/testrunner.js index 76e08bf..2d12b46 100644 --- a/lib/testing/testrunner.js +++ b/lib/testing/testrunner.js @@ -133,9 +133,12 @@ TestRunner.prototype.startTest = function(mocha, callback) { }; TestRunner.prototype.endTest = function(mocha, callback) { + var self = this; - if (mocha.currentTest.state != "failed") { + var showEvents = self.config["show-events"]; + + if (mocha.currentTest.state != "failed" && !showEvents ) { return callback(); }