Mercurial > repos > public > sbplib
changeset 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 | 00203fcc962f |
children | 835c8fa456ec 33c378e508d2 |
files | runtestsAll.m runtestsPackage.m |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
diff -r 00203fcc962f -r 3230e4cbdbb4 runtestsAll.m --- a/runtestsAll.m Tue Apr 09 20:24:21 2019 +0000 +++ b/runtestsAll.m Wed Apr 10 22:11:11 2019 +0200 @@ -15,7 +15,7 @@ rootSuite = matlab.unittest.TestSuite.fromFolder(pwd); packageSuites = {}; for i = 1:length(packages) - packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i}); + packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i}, 'IncludingSubpackages', true); end ts = [rootSuite, packageSuites{:}];
diff -r 00203fcc962f -r 3230e4cbdbb4 runtestsPackage.m --- a/runtestsPackage.m Tue Apr 09 20:24:21 2019 +0000 +++ b/runtestsPackage.m Wed Apr 10 22:11:11 2019 +0200 @@ -1,4 +1,4 @@ function res = runtestsPackage(pkgName) - ts = matlab.unittest.TestSuite.fromPackage(pkgName); + ts = matlab.unittest.TestSuite.fromPackage(pkgName, 'IncludingSubpackages', true); res = ts.run(); -end \ No newline at end of file +end