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
- Script-Based Unit Tests
Write and run test scripts
- Function-Based Unit Tests
Write tests using qualifications; customize test runner; select and run tests
- Class-Based Unit Tests
Write class-based tests; parameterize tests; apply fixtures; select and run tests
- Extend Unit Testing Framework
Customize testing environment; author constraints, diagnostics, fixtures, and plugins
- Mocking Framework
Isolate a portion of a system to test by imitating behavior of dependencies
- App Testing Framework
Write automated tests for App Designer apps
- Performance Testing Framework
Measure performance of MATLAB code