Run MATLAB Tests
Since R2023a
Reduce overall testing time by finding and running only the tests impacted by changes to your source code. Use the MATLAB Test Manager app to run tests in your MATLAB® project and view test results. Create and filter test suites by including tests that meet specific criteria, such as tests that depend on particular source files or those that use baseline data.
MATLAB Test™ extends the test execution capabilities of the MATLAB unit testing framework. For more information on how MATLAB Test enhances the functionality provided by MATLAB apps, classes, and functions, see Extend MATLAB Unit Testing Framework with MATLAB Test.
Apps
| MATLAB Test Manager | Manage MATLAB tests and results for projects |
Classes
matlabtest.selectors.HasBaseline | Select TestSuite array elements by baseline-specific
parameterization (Since R2024b) |
matlabtest.selectors.DependsOn | Select TestSuite array elements by source code
dependency |
Functions
matlab.unittest.TestSuite.fromRequirements | Create test suite from requirements |
Topics
- Run MATLAB Tests
Run MATLAB tests programmatically or by using the MATLAB Editor, Test Browser, or MATLAB Test Manager.
- Manage Tests and Results by Using the MATLAB Test Manager
Manage tests and test results for projects by using the MATLAB Test Manager.
- Find Tests That Depend on Files
Find and run tests that depend on files and folders interactively or programmatically.
- Test Impact Analysis Using MATLAB Build Tool
Run the tests impacted by changes to code and data by using the MATLAB build tool. (Since R2025a)
- Find and Run Impacted Tests in Projects Under Source Control
Use the MATLAB Test Manager to find and run tests impacted by changes since the last commit. (Since R2025a)
- Configure Test Settings for Build Tool by Using MATLAB Test Manager
Use test and coverage settings from the MATLAB Test Manager when you use the MATLAB build tool to run tests. (Since R2025a)