Skip to content

Instantly share code, notes, and snippets.

@joneath
Created April 12, 2012 05:20
Show Gist options
  • Save joneath/2364751 to your computer and use it in GitHub Desktop.
Save joneath/2364751 to your computer and use it in GitHub Desktop.
This gist can be ran before the jasmine runner starts to stop rendering of successful specs descriptions. This is important in a large test suite as the large amount of DOM manipulation slows down the suite. This will not effect the reporting of failed sp
var specViewProto = jasmine.HtmlReporter.SpecView.prototype;
jasmine.HtmlReporter.SpecView = function(spec, dom){
this.spec = spec;
this.dom = dom;
this.symbol = this.createDom('li', { className: 'pending' });
this.dom.symbolSummary.appendChild(this.symbol);
this.detail = $("<div class='description'></div>").get(0);
};
jasmine.HtmlReporter.SpecView.prototype = specViewProto;
jasmine.HtmlReporter.SpecView.prototype.appendSummaryToSuiteDiv = function(){};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment