Get Started with MATLAB Test
MATLAB® Test™ provides tools for developing, executing, measuring, and managing dynamic tests of MATLAB code, including deployed applications and user-authored toolboxes. You can use the project-based quality dashboard to raise the visibility of code readiness to an intuitive summary level. The dashboard is an interactive, graphical summary of code quality metrics with clickable details for code analysis, code coverage, test results, and requirements.
MATLAB Test manager helps you organize and manage tests and results in your project by enabling you to group, save, and run custom test suites at scale. You can identify untested code paths using industry-standard code coverage metrics, such as condition, decision, and modified condition/decision coverage (MC/DC). Persistent test results enable you to optimize productivity by only rerunning select tests to verify code edits. You can reduce test execution time of large test suites by leveraging dependency-based test selection, by running tests in parallel, or within continuous integration systems.
You can verify the expected behavior of artifacts created with MATLAB Coder™ and MATLAB Compiler SDK™ using functional equivalence testing techniques. MATLAB Test enables you to meet specifications in regulated applications by tracing requirements (with Requirements Toolbox™). Support for industry standards is available with the IEC Certification Kit (for ISO® 26262, IEC 61508, and IEC 62304).
This tutorial shows how to use MATLAB® Test™ to verify a MATLAB algorithm.
What Is MATLAB Test?
Develop, manage, analyze, and test MATLAB applications using MATLAB Test.
Visualize MATLAB Code Quality
Visualize and measure the quality of your MATLAB code using the MATLAB Test Code Quality Dashboard.
Measure Code Coverage in MATLAB
Measure how much of your MATLAB Test application or algorithm is covered by testing.
Equivalence Testing for Code Integrity
Create and run equivalence tests that compare the results produced by your MATLAB code with the results produced by code generated with MATLAB Coder or MATLAB Compiler SDK.