matlab-xunit

How to make MATLAB xUnit work on MATLAB R2008b (7.7)?

I copied the matlab_xunit folder to C:\Program Files, and included it (and its subfolders) on the MATLAB path. Now MATLAB recognizes new commands such as runtests But this command does not find any tests on the current folder. What I have done wrong? What else can I do? >> runtests Starting test run with 0 test cases. PASSED in 0.0...

How to pass multiple parameters to tests that share the same setup code in Matlab xUnit?

According to "How to Write Tests That Share Common Set-Up Code" is it possible to: function test_suite = testSetupExample initTestSuite; function fh = setup fh = figure; function teardown(fh) delete(fh); function testColormapColumns(fh) assertEqual(size(get(fh, 'Colormap'), 2), 3); function testPointer(fh) assertEqual(get(fh, '...