|
|
|
|
|
by justizin
2908 days ago
|
|
this is pretty much de facto in python, and though not as widely used as i'd like, there is a testing framework called doctest which allows you to write tests in the documentation. so for a given method or class, you have a couplefew paragraphs which explain how to use it, with invocations that are run as part of the test suite. sometimes there end up being too much acrobatics for this to be as useful as i'd like, but the basic idea is really neat, IMO. |
|