pivotal/jasmine — pull request #152 by gvictorv (2011-10-26 23:58:35+00:00)
Title: Please consider to enable html report integration into an existing div element

Currently jasmine.TrivialReporter always creates the complete report div structure (including the root div element of the report) and appends it as child of the document body. Thus it is not possible to integrate the (really nice) report into a sub element of a page with an already given structure.

With the proposed trivial change 'jasmine.TrivialReporter' first will search for an already existing HTML element with ID 'jasmine_reporter' and - if existing - append the report as child to this existing element (which should be a div, of course). If no corresponding element can be found, a new div element will be created and appended as child to document.body - as before.

This makes it possible to integrate the test report into a sub element - like a TiddlyWiki tiddler. TiddlyWiki (www.tiddlywiki.com) is an One-File-Wiki with an already given page structure - including everything in one file: data and source. I'm using jasmine in order to test the functionality of TiddlyWiki plugin extensions right in place.

Example: [Jasmine test report in a TiddlyWiki tiddler](http://www.screencast.com/users/Georg-Victor/folders/Jing/media/b2f48e63-d1aa-488d-b6c0-2da8ffba0c43)

Thank you very much for providing jasmine! Love jasmine! :-)