MATLAB Test

MAJOR UPDATE

 

MATLAB Test

Generate, manage, and execute tests for MATLAB programs

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).

Video length is 2:17

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 code 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.

The MATLAB Test manager user interface with tagged test files.

Manage Large-Scale Test Suites

Organize and manage tests and test results within 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.

The Requirements Toolbox interface shown with arrows pointing to MATLAB application code and MATLAB Test.

Trace Requirements to MATLAB Code and Tests

Create, manage, and navigate traceability links between individual lines in your MATLAB or MATLAB Test code and requirements information in external documents (with Requirements Toolbox). Highlight traceability in the MATLAB Editor to identify gaps in implementation or testing.

A certification mark issued by TÜV SÜD.

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.

Try MATLAB Test for free

Discover the possibilities today.


Ready to Buy?

Get pricing information and explore related products.

Are You a Student?

Your school may already provide access to MATLAB, Simulink, and add-on products through a campus-wide license.