import matlab.unittest.plugins.TestRunProgressPlugin
% Generate TestSuite.
s1 = TestSuite.fromClass(?DocPolynomTest);
s2 = TestSuite.fromFile('axesPropertiesTest.m');
suite = [s1 s2];
% Create silent test runner.
runner = TestRunner.withNoPlugins;
% Add plugin to display test progress.
runner.addPlugin(TestRunProgressPlugin.withVerbosity(2))
% Run tests using customized runner.
result = run(runner,[suite]);
See Also
matlab.unittest.TestCase.run | matlab.unittest.TestRunner.run |
matlab.unittest.TestSuite.run | runtests
More About
- “Run Tests in Editor” on page 33-21
33 Unit Testing