comparison runtestsAll.m @ 1107:3230e4cbdbb4

Add parameter in runtestsAll() and runtestsPackage() so that they include tests in subpackages
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 10 Apr 2019 22:11:11 +0200
parents cd571e8ec1fd
children
comparison
equal deleted inserted replaced
1106:00203fcc962f 1107:3230e4cbdbb4
13 end 13 end
14 14
15 rootSuite = matlab.unittest.TestSuite.fromFolder(pwd); 15 rootSuite = matlab.unittest.TestSuite.fromFolder(pwd);
16 packageSuites = {}; 16 packageSuites = {};
17 for i = 1:length(packages) 17 for i = 1:length(packages)
18 packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i}); 18 packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i}, 'IncludingSubpackages', true);
19 end 19 end
20 20
21 ts = [rootSuite, packageSuites{:}]; 21 ts = [rootSuite, packageSuites{:}];
22 22
23 res = ts.run(); 23 res = ts.run();