yamadapc / jsdoctest

Run jsdoc examples as doctests.
https://yamadapc.github.io/jsdoctest
MIT License
92 stars 9 forks source link

"Compile" doctests into a mocha suite #3

Closed yamadapc closed 9 years ago

yamadapc commented 9 years ago

In essence, all I'd like is to leverage mocha's test runner, rather than having to rewrite tooling around it. For the best design possible, we should look at how blanket injects itself into the code with mocha --require blanket, but simply generating describe and it spec code and delegating it into the mocha module shouldn't be unreasonably hard to pull-off.