From: Thomas GUERNEVE on
I'm currently working with the xUnit framework in order to create a complete range of tests for my classes. The problem is, when I want to declare one test method in my test class as a static method, this latter can't be runned.

Actually, Matlab returns this message :

>> s=TestSuite('TestMap'); s.run;

Starting test run with 14 test cases.
F.............
FAILED in 0.422 seconds.

===== Test Case Failure =====
Location: C:\Users\TestMap.m
Name: staticTest

C:\AjoutsMATLAB\matlab_xunit_3.0.1\xunit\TestCase.m at line 74
C:\AjoutsMATLAB\matlab_xunit_3.0.1\xunit\TestSuite.m at line 85

Undefined function or method 'staticTest' for input arguments of type 'TestMap'.

whereas I declared properly the function in a static method block as following :

methods (Static = true)

function staticTest
fprintf('Ceci est un test');
end

end % End of Static methods

I can't fix this problem, can you help me please?