Is there some simple way add (write) your own output to the Jasmine result screen so that it merges nicely with the rest of the Jasmine output - maybe some htmlReporter function to do this?
I have writing some small performance test that executes from a Jasmine test javascript:
it("moveNodes: performance move 10000 entries:", function () {
startTime = new Date().getTime();
myObject.moveNodes(4000 , 5000);
endTime = new Date().getTime();
var testRes = (endTime - startTime);
$(document.body).append('<div id="perfRes" ></div>');
$("#perfRes").append('<div class="myJasmine" >moveNodest: 4000 -> 5000: ' + testRes + ' milliSec</div>');
}
It all works fine and prints out nicely with this bit of CSS styling:
.myJasmine {
color: #5e7d00;
font-size: 11px;
font-family: Monaco, "Lucida Console", monospace;
line-height: 14px;
text-indent:33px;
}
However, it only work when put as the very last test item, otherwise it gets mixed up with the other Jasmine output.
Any suggestions or hacks?
Regards,
Claus