mirror of
https://github.com/Cantera/cantera.git
synced 2026-07-31 00:28:21 -05:00
16 lines
457 B
Matlab
16 lines
457 B
Matlab
import matlab.unittest.TestRunner
|
|
|
|
thisFile = mfilename('fullpath');
|
|
testFolder = fileparts(thisFile);
|
|
addpath(genpath(testFolder));
|
|
suite = testsuite(testFolder);
|
|
% Sample tests are tagged as 'Slow' due to the extra headroom
|
|
% required when Cantera is loaded in 'outofprocess' mode.
|
|
isSlow = cellfun(@(tags) any(strcmp(tags, 'Slow')), {suite.Tags});
|
|
suite = suite(~isSlow);
|
|
|
|
runner = TestRunner.withTextOutput;
|
|
|
|
results = runner.run(suite);
|
|
disp(results);
|