No BSD License  

Highlights from
MATUnit

3.5

3.5 | 2 ratings Rate this file 2 Downloads (last 30 days) File Size: 8.7 KB File ID: #7979

MATUnit

by Timothy Wall

 

05 Jul 2005 (Updated 06 Jul 2005)

xUnit unit test framework for MATLAB

| Watch this File

File Information
Description

Provide automatic testing of m-file functions. Captures and resports test execution, failure, and errors.

Automatically collects multiple tests written in a single file into a suite of tests.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Unit testing tools

MATLAB release MATLAB 6.0 (R12)
Other requirements Read up a little on xUnit and unit testing at www.junit.org. While the examples use Java, the principles are applicable across many different languages.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
04 Aug 2005 Timothy Wall

Bug: if the name of your test suite file starts with "test" it'll recursively loop and not provide any useful results. the workaround is to name your main file something like MyTests or DSPTest.

10 Jan 2006 Andrew Newell

In R14, each call to the command
tests = str2func(suite([mfilename '.m']));
gets the following warning:

-------
Warning: Non-scalar arrays of function handles will continue to work in R14, but will be illegal in R15, to support parenthesis notation for invocation of function handles. To prepare for R15, and to avoid this warning, use cell arrays of function handles instead of arrays. For more information, type 'help function_handle' and see the section at the end entitled Note on Backward Compatibility.
-------

17 Oct 2006 Does Itmatter

Very cleanly written code

27 Jan 2009 Matthew Davidson

Lacks setup and teardown facilities. Code could be broken down into smaller chunks.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
development environment Timothy Wall 22 Oct 2008 07:52:21
unit Timothy Wall 22 Oct 2008 07:52:21
test Timothy Wall 22 Oct 2008 07:52:21
utilities Timothy Wall 22 Oct 2008 07:52:21
xunit Timothy Wall 22 Oct 2008 07:52:21
unit test Ryan Ollos 23 Sep 2009 16:22:08
xunit Ryan Ollos 23 Sep 2009 16:22:08

Contact us at files@mathworks.com