searls/jasmine-all — pull request #1 by sukima (2013-02-03 02:03:31+00:00)
Title: Feature/attach to element

* Adds a slight API to prevent auto running specs
* Adds attachTo method to choose DOM element
* Adds examples for new features

This allows you to defer the execution so that if you include this in a
page where you want to run the tests via another mechanism (ie a button
click).

To do so immediately invoke `jasmineRunner.noAutoRun()` after you include this
script in the HTML document. Then when ready execute `jasmineRunner.run()`. The
init method gets run regardless to setup the CSS.

The `attachTo` method allows you to choose what element to attach the test
output to. This is a little bit of a hack as the jasmine HTMLReporter assumes a
doucument object not a DOM element.

The two additional examples (`2.html` and `3.html`) show how to use these new
methods. If you do not use any of these features the entire script runs as
before.