from
MATLAB/Simulink Unit Test Framework
by Carl Kritzinger
A unit test framework for matlab and simulink components
|
| unit_test_demo.m |
%dbstop in test_case_result_generator at 27
%dbstop in test_unit_test at 15
%dbstop in simulink_unit_test_hook at 54
%dbstop in simulink_unit_test_hook at 102
disp('Demo the KAT DSP Unit testing prototype.......')
disp('First we are going to create some unit tests......')
disp('--------------------------------------------------');pause;
create_example_unit_tests;
disp('we now have our unit tests in a directory')
disp('Run the unit test batch.........')
disp('--------------------------------------------------');pause;
run_unit_test_batch(pwd)
disp('Now we can examine the results')
disp('--------------------------------------------------');pause;
edit('unit_test_results.txt');
disp('Demo finished, press any key.')
disp('--------------------------------------------------');pause;
%dbclear all
|
|
Contact us at files@mathworks.com