Reputation: 8915
In my Python development, doctest
has really helped both to
I was wondering, is there anything like this available in the Matlab world? It doesn't have to literally use code comments as a test, but if it had those two desirable qualities, that would be great!
Upvotes: 4
Views: 307
Reputation: 7985
This exists now! There are three versions out there:
Upvotes: 4
Reputation: 2146
Not yet, but there is something to generate documentation called M2HTML.
It is very useful, and you can take a look at the examples at that page to see how wonderful results it's producing (even dependency graphs :) ).
For unit testing in MATLAB, even if there are many solutions, mlUnit was the most efficient to me.
Upvotes: 2
Reputation: 74940
There is no direct equivalent to doctest
in MATLAB.
There is, however, a nice unit testing framework on the Matlab File Exchange.
Upvotes: 1