[b4b313]: / matlab_xunit_3.1 / matlab_xunit / doc / exRunSpecificTest.m

Download this file

24 lines (17 with data), 621 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%% <../index.html MATLAB xUnit Test Framework>: How to Run a Specific Test
% To run all the test cases in just one M-file, ignoring other test
% cases that might be in other files in the same directory, give
% the name of the file (without the ".m" extension) as an argument
% to |runtests|.
%
% For example
cd example_subfunction_tests
runtests testFliplr
%%
% To run a single test case, add the name of the test case using a
% colon (":"), like this:
runtests testFliplr:testFliplrVector
%%
% <../index.html Back to MATLAB xUnit Test Framework>
%%
% Copyright 2008-2010 The MathWorks, Inc.