Rank: 307874 based on 0 downloads (last 30 days) and 0 file submitted

Andrew McLean


Personal Profile:


Watch this Author's files


Comments and Ratings by Andrew McLean
Updated File Comments Rating
21 Feb 2011 MATLAB xUnit Test Framework MATLAB xUnit is a unit test framework for MATLAB code. Author: Steve Eddins

I think the test framework is great.

One thing I find myself wanting is to have test scripts which provide informative output when called standalone, but are "quiet" when called from "runtests".

The following code helps this along:

[st, ~] = dbstack();
isBatch = strcmpi(st(end).name, 'runtests');

But this feels a bit kludgy. I could put it in a function, but maybe this, or something equivalent, could be provided with the framework.

Contact us