This is a complete unit testing framework in Matlab that includes test cases, test sets, automated collecting of complex test trees from the file system, automated parsing of tests to anable the user to just-write-tests, test fixtures, test callbacks, selectable and reimplementable test runners, simple to use (execution with just a command without parameters).
Gabriele Lombardi (2021). MUnit: a unit testing framework in Matlab (https://www.mathworks.com/matlabcentral/fileexchange/11306-munit-a-unit-testing-framework-in-matlab), MATLAB Central File Exchange. Retrieved .
Great package, but has some issues in newer versions of MATLAB.
The documentation is full of spelling mistakes, some of them are quite comical. For example the api uses "shoutdown" where "shutdown" was probably meant.
The demo does not appear to work in with the R2009a release of Matlab, on my computer it aborts in Line 188 of the file testcollect.m with the error message "Undefined function or method 'SfactoryTemplate' for input arguments of type 'char'."
This package would be just what I'm looking for, if it actually worked.
Thank you for material
Easy to use and does the job. Also a good example of use of Matlab classes.
Inspired by: munit
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!