Code covered by the BSD License  

Highlights from
mlunit_2008a

image thumbnail
from mlunit_2008a by Christopher
A MATLAB unit test framework supporting new classdef files (r2008a)

TestSuite
classdef TestSuite < handle
% TESTSUITE Groups test cases for running all together.
%
% This class is part of the mlunit_2008a testing framework.
%
% To create a named test suite that you run repeatedly, subclass this
% class and override the suite() method.  The suite() method should
% return a cell array of string names of test case/suite classes.

   properties
   end

   methods (Abstract)
       test_cases = suite(self)
   end
   
   methods
       function s = getDescription(self)
           s = class(self);
       end
       
       function tr = getNewTestResult(self, parent)
           if nargin < 2, parent = []; end
           tr = TestSuiteResult(self, parent);
       end
   end
   
end 

Contact us at files@mathworks.com