mlUnit. As far as I know, the only MATLAB unit test framework that:
- outputs jUnit XML reports
- comes with an Ant target to execute MATLAB and your unit tests out of the box
- with these benefits, lets you easily execute your unit tests in a Continuous Integration system, e.g. Jenkins, and monitor your test results there.
Also, mlUnit works on older MATLAB versions, e.g. R2006b and probably older. You define your test cases in test suites. A test suite is a MATLAB function file, a test case is a subfunction in that file.
Use the newest 1.6.x version. The 2.0 beta migrated an older version to MATLAB's classdef for implementation, but has not been maintained since. If you run into problems, there's an issue tracking system, because mlUnit is maintained at sourceforge.net.