MATLAB Test
MATLAB® Test™ provides tools for measuring, testing, and improving the quality of your MATLAB code. Generate basic tests or use MATLAB Copilot to generate a suite of tests that are ready to run. You can also generate tests from your command history, and equivalence tests for MATLAB Coder™ and MATLAB Compiler SDK™ artifacts.
Use the Code Quality Dashboard to examine code readiness and identify untested code paths using industry-standard code coverage metrics, such as decision, condition, and modified condition/decision coverage (MC/DC). Use the MATLAB Test Manager to manage and execute test suites and reduce test execution time by running only the tests impacted by recent code changes.
With MATLAB Test, you can trace and verify requirements (with Requirements Toolbox™) and ensure compliance in regulated applications requiring ISO® 26262 and IEC 61508 standards (with IEC Certification Kit).
Get Started
Learn the basics of MATLAB Test
Create MATLAB Tests
Create tests for MATLAB source code
Run MATLAB Tests
Find and run tests interactively and programmatically
Collect Decision, Condition, and MC/DC Coverage
Collect decision coverage, condition coverage, and modified condition/decision coverage (MC/DC) for MATLAB or generated C/C++ code
Measure and Manage Project Quality
Collect metric data for code, tests, and requirements in MATLAB projects
Verify Generated Code and Deployed Code Artifacts
Verify generated C/C++ code and deployed code artifacts by using equivalence tests
Tool Qualification and Certification
Qualify MATLAB Test for IEC certification