Run Unit Tests - MATLAB & Simulink (original) (raw)

Main Content

Select and run tests; customize the test runner; analyze test and coverage results

Run your tests interactively in the MATLAB® Editor or Live Editor, or in the Test Browser app, or run your tests programmatically, for example, with the runtests function or the run method of thematlab.unittest.TestSuite class. Customize your test run with options, such as running tests in parallel (requires Parallel Computing Toolbox™) or specifying a level of test output detail. Collect code coverage metrics as you run your tests, and analyze the test and coverage results.

Apps

Test Browser Run MATLAB tests and view results (Since R2023a)

Functions

Classes

Namespaces

Topics

Run Tests

Analyze Results