Main Content
Testing Frameworks
Test the functionality and performance of your MATLAB® code
Testing your code is an integral part of developing quality software. To guide software development and monitor for regressions in code functionality, you can write unit tests for your programs. For more information about the different types of unit tests, see Ways to Write Unit Tests. You also can write performance tests to measure the time it takes for your code (or your tests) to run and test a portion of a complete system in isolation using mocked-up dependencies.
Categories
- Write Unit Tests
Write tests using scripts, functions, or classes; apply fixtures; parameterize tests
- Run Unit Tests
Select and run tests; customize the test runner; analyze test and coverage results
- Mock Dependencies in Tests
Use the mocking framework to isolate a portion of a system to test by imitating the behavior of dependencies
- Test Apps
Use the app testing framework to write automated tests for App Designer apps
- Create and Run Performance Tests
Use the performance testing framework to measure the performance of your MATLAB code
- Extend Testing Frameworks
Customize the testing environment; author constraints, diagnostics, fixtures, and plugins