annotate runtestsAll.m @ 1198:2924b3a9b921 feature/d2_compatible

Add OpSet for fully compatible D2Variable, created from regular D2Variable by replacing d1 by first row of D1. Formal reduction by one order of accuracy at the boundary point.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 16 Aug 2019 14:30:28 -0700
parents 3230e4cbdbb4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
138
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 function res = runtestsAll()
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 l = dir();
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3
455
cd571e8ec1fd Add function to run checkcode on all matlab files
Jonatan Werpers <jonatan@werpers.com>
parents: 138
diff changeset
4 warning('Simplify using the ''what'' command')
cd571e8ec1fd Add function to run checkcode on all matlab files
Jonatan Werpers <jonatan@werpers.com>
parents: 138
diff changeset
5
138
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
6 dirNames = {l([l.isdir]).name};
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
7
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
8 packages = {};
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
9 for i = 1:length(dirNames)
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
10 if dirNames{i}(1) == '+'
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
11 packages{end+1} = dirNames{i}(2:end);
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
12 end
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
13 end
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
14
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
15 rootSuite = matlab.unittest.TestSuite.fromFolder(pwd);
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
16 packageSuites = {};
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
17 for i = 1:length(packages)
1107
3230e4cbdbb4 Add parameter in runtestsAll() and runtestsPackage() so that they include tests in subpackages
Jonatan Werpers <jonatan@werpers.com>
parents: 455
diff changeset
18 packageSuites{i} = matlab.unittest.TestSuite.fromPackage(packages{i}, 'IncludingSubpackages', true);
138
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
19 end
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
20
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
21 ts = [rootSuite, packageSuites{:}];
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
22
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
23 res = ts.run();
344bde2f9d9b Added a function to run all tests in a folder including all tests in subpackages.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
24 end