rescdsk
rescdsk

Reputation: 8915

Is there a Matlab tool similar to Python's Doctest?

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

Answers (3)

Kleist
Kleist

Reputation: 7985

This exists now! There are three versions out there:

Upvotes: 4

A. Ionescu
A. Ionescu

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

Jonas
Jonas

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

Related Questions