Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail

MATLAB xUnit Test Framework


Steve Eddins (view profile)


31 Jan 2009 (Updated )

MATLAB xUnit is a unit test framework for MATLAB code.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

% UTILS Utility package for MTEST unit testing framework
% Array Comparison
%   compareFloats            - Compare floating-point arrays using tolerance
% Test Case Discovery Functions
%   isTestCaseSubclass       - True for name of TestCase subclass
% String Functions
%   containsRegexp           - True if string contains regular expression
%   isSetUpString            - True for string that looks like a setup function
%   isTearDownString         - True for string that looks like teardown function
%   isTestString             - True for string that looks like a test function
% Miscellaneous Functions
%   generateDoc              - Publish test scripts in mtest/doc
%   parseFloatAssertInputs   - Common input-parsing logic for several functions

% Undocumented Functions
%   isAlmostEqual        - Floating-point equality test using relative tolerance

%   Steven L. Eddins
%   Copyright 2008-2009 The MathWorks, Inc.

Contact us