senchalabs/jsduck — pull request #168 by limscoder (2012-04-20 18:24:10+00:00)
Title: Added DocTests tab to main JSDuck page

Allows inline example code to be tested, and allows asserts to be added to inline example code

Added DocTest classes to /controller/view/model

Added Assert class for assertions

Added --doctests command line arg to create tab

Added "doctest" rake task

Modified eg-iframe.html to instrument testing

Modified regex in Content.js to make jsduck a little easier to use locally without a http server

Note: this code grabs all generated class files to locate inline examples. It would be cool if the cacheing used in Classes.js could be split out into a separate class, so the cache could be shared between different parts of the application.