zcaudate-me / lein-midje-doc

moved -> 'lucid.publish'
http://docs.caudate.me/lucidity/lucid-publish.html
73 stars 8 forks source link

Adding fact checking result to lein-midje-doc output #11

Open lispmeister opened 10 years ago

lispmeister commented 10 years ago

I'd like to add the result of the test's fact checking to the document output (as markup). Currently a failed test is not visible to the reader unless he also consults the midje output on the shell.

Where would be a good place to add code for a feature like that?

zcaudate commented 10 years ago

I think that will not be a simple task because you would have to hook in each test to the midje framework, or else evaluate each form one by one.

Currently, midje-doc does not even attempt to evaluate the file but this is a definite possibility that it can be done. You can add a meta key value pair to the top of the fact form that needs to be printed, then render it accordingly.

The rendering functions needs to be rewritten... But that's another issue.

On 28 May 2014, at 20:29, lispmeister notifications@github.com wrote:

I'd like to add the result of the test's fact checking to the document output (as markup). Currently a failed test is not visible to the reader unless he also consults the midje output on the shell.

Where would be a good place to add that?

— Reply to this email directly or view it on GitHub.