Test Tools - Utilities for unit tests

Tools that facilitate debugging or writing unit test for MATLAB functions.
2.3K Downloads
Updated 26 Jul 2009

View License

Version 1.2 (JASP) 26-Jul-2009

This package is a set of tools that facilitate debugging or writing unit test for MATLAB functions.

disp_value - display the value of an expression
disp_test_title - display a test name
disp_test_name - display a subtest name
disp_num_failures - display number of test failures

check_err - verify an expected error message
check_warn - verify an expected warning message
check_value - compare a test value with an expected value
check_float - specifically checks floating point numbers

set_val - sets, displays variable value without expanding value

time - times a script/function call
timesim - times a Simulink model run

Cite As

Jay St. Pierre (2024). Test Tools - Utilities for unit tests (https://www.mathworks.com/matlabcentral/fileexchange/346-test-tools-utilities-for-unit-tests), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Testing Frameworks in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

- Changed license from GPL to BSD
- Scrubbed mlint warnings

1.0.0.0