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).
Measure Code Coverage in MATLAB
Measure how much of your MATLAB application or algorithm is covered by testing. Collect decision, condition, and MC/DC coverage metrics, along with statement and function coverage metrics from MATLAB. Use these metrics in assessing testing effectiveness and completeness or in demonstrating compliance with industry regulations.
Visualize MATLAB Code Quality
Visualize and measure the quality of your MATLAB code with the MATLAB Test quality dashboard. The dashboard provides an aggregated summary view of static code analysis and test results, as well as coverage and requirements metrics.
Equivalence Testing for Code Integrity
Create and run back-to-back equivalence tests. Compare the results produced by your MATLAB code with the results produced by code generated with MATLAB Coder or MATLAB Compiler SDK in accordance with IEC® 62304 and ISO 26262 recommendations.
Manage Large-Scale Test Suites
Organize and manage tests and test results in your project by creating and running custom test suites. Apply dependency-based test techniques to focus test efforts on critical code sections. Use persistent test results to rerun only a select subset of tests to verify code edits.
Trace Requirements to MATLAB Code and Tests
With Requirements Toolbox, create, manage, and navigate traceability links between individual lines in your MATLAB or MATLAB Test code and requirements information in external documents. Highlight traceability in the MATLAB editor to identify gaps in implementation or testing.
Compliance with Industry Standards
Use tool qualification artifacts, certificates, and test suites from the IEC Certification Kit to qualify MATLAB Test and other MathWorks code generation and verification tools to ISO 26262, IEC 61508, EN 50128, ISO 25119, and related functional safety standards such as IEC 62304 and EN 50657. Certificates and assessment reports from TÜV SÜD are included in the kit for MATLAB Test.
Are You a Student?
Your school may already provide access to MATLAB, Simulink, and add-on products through a campus-wide license.