Unit Testing Framework

Write and run tests for MATLAB® programs

To test your MATLAB programs, you can use the tools provided by the unit testing framework. You can write tests as scripts, functions, and classes. Each type of test supports different levels of test complexity. For example you can write simple script-based tests or complex class-based tests depending on your testing needs.

To get started running tests, see the runtests function or Run Tests for Various Workflows.

Was this topic helpful?