5 karma · joined Dec 29, 2011 (14y ago) · 5 submissions
comment 6y ago · link · parent
comment 8y ago · link · parent
https://gist.github.com/lauri/84674ab22aafc4e0f398a52a53cfd7...
comment 9y ago · link · parent
Some fine folks have also made a version that works on modern computers: https://github.com/ja2-stracciatella/ja2-stracciatella
comment 11y ago · link · parent
It isn't something I would encourage others to use in its current state, but maybe it will give you some ideas. It uses Ruby's Minitest and adds some syntax to it. When the tests run it captures some things and writes those to an html template.
comment 11y ago · link · parent
The problem I used to have is that if you write your documentation by hand it tends to get out of sync with the code. You make a quick change to the code and forget to update the docs. After a while it's a mess unless you stay vigilant.
But if you generate documentation from tests they can't get out of sync. The example output that gets written to the docs comes from the application so it can't be wrong. And if a test fails, documentation doesn't get written. It also forces you to write tests which is a good thing. If you don't, you don't have docs.
I don't know if there are tools like this. I created one for Ruby/Rack apps that I have used in some of my projects. I think this approach works pretty well.