quangv / mocha-cakes

(inactive) BDD mocha test framework add-on, stories with Cucumber style Given/When/Then syntax for Node.js
MIT License
126 stars 6 forks source link

Support for `mocha -R doc` output? #3

Closed garbrand closed 12 years ago

garbrand commented 12 years ago

This lib is awesome, we're using it extensively. Are you considering adding support for mocha -R doc output? It would make a great documentation tool describing the features and scenarios. For extra greatness it could not output scenarios that are pending (so you only have docs for complete code).

Let me know if you're not considering this, otherwise I'd like to take a look and see what I can do.

quangv commented 12 years ago

Hey garbrand,

I'm glad you're enjoying it :)

I haven't looked int -R doc but I agree the output makes a great documentation tool.

Yikes, -R doc looks terrible with mocha-cakes right now.

Yeah feel free to take a look at it, I have to warn you however, the code needs major refactoring to get in-line with OOD (and TDD) standards which I'm planning on it, but feel free to branch and take a look, if you want you could commit, do a pull-request, and chances are it'll be pulled in.

garbrand commented 12 years ago

Great, I'll take a look and see what I can do!

quangv commented 12 years ago

with mocha-cakes 0.5 this should be easier to implement!

quangv commented 12 years ago

Implemented on 0.5.1 ... MC should look better with -R doc now :)

Let me know if this was what you had in mind, so we can close the ticket. :)

garbrand commented 12 years ago

Sorry, I've been out of the loop for a while. Looks awesome now, thanks!

quangv commented 12 years ago

np enjoy :)