diff --git a/spec/helpers/helper.js b/spec/helpers/helper.js index f133f469c..0d90c2cdc 100644 --- a/spec/helpers/helper.js +++ b/spec/helpers/helper.js @@ -49,6 +49,15 @@ console.error = function() { console.log.apply(console, arguments); }; +if (process.argv.indexOf('--with-test-names') > -1) { + jasmine.getEnv().addReporter({ + specStarted: function(result){ + // Printing weirdly so pass/fail indicator is on the same line as the test name + process.stdout.write('\n' + result.fullName); + } + }) +} + var initialized = false; beforeEach(function(done) { if (initialized) {