Mercurial > repos > public > sbplib
view runtestsAll.m @ 1144:bdd59e18a961 feature/burgers2d
Branch obsolete. Integratd into the branch feature/rv
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 18 Jan 2019 09:23:13 +0100 |
parents | cd571e8ec1fd |
children | 3230e4cbdbb4 |
line wrap: on
line source
function res = runtestsAll() l = dir(); warning('Simplify using the ''what'' command') dirNames = {l([l.isdir]).name}; packages = {}; for i = 1:length(dirNames) if dirNames{i}(1) == '+' packages{end+1} = dirNames{i}(2:end); end end rootSuite = matlab.unittest.TestSuite.fromFolder(pwd); packageSuites = {}; for i = 1:length(packages) packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i}); end ts = [rootSuite, packageSuites{:}]; res = ts.run(); end