Is there a reason why 'runtests' ignores scripts (rather than functions)? If I forget the useless line 'function testBLAH' at the beginning of a test case, then that test is silently ignored. This does not seem a sound practice, since it can lead to unnoticed failure. I strongly suggest you to fix this behaviour, unless it is intended for some reason.
I am discovering this usefull framework and testing with examples.
It seems that package content isn't taken in account running
runtests test_packageName
or
runtests 'xunit.mocktests'
The suite.TestComponents is always empty.
Thanks for your help.
I am creating the following function:
function mytests
runtests('/opt/tests');
end
So now I build this function by running deploytool and I give the path for the additional libraries as /opt/tests and the path for the source files of functions I am testing in my tests. Then I run the generated executable from the unix command line which is outside the MATLAB environment. It gives me the same error.
If I call runtests('/opt/tests') on the MATLAB command line it works fine.
I am creating the following function:
function mytests
runtests('/opt/tests');
end
So now I build this function by running deploytool and I give the path for the additional libraries as /opt/tests and the path for the source files of functions I am testing in my tests. Then I run the generated executable from the unix command line which is outside the MATLAB environment. It gives me the same error.
If I call runtests('/opt/tests') on the MATLAB command line it works fine.
Comment only