% runtests.m % MATLAB runs the test result = runtests(pwd); ttt = table(result); disp(ttt); % check the result if all(ttt.Passed) ~= 0 && any(ttt.Failed) == 0 && any(ttt.Incomplete) == 0 exit_code = 0; else exit_code = 1; end % Ensure that we ALWAYS call exit exit(exit_code);