-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathexRunTestsInPackage.m
30 lines (24 loc) · 1017 Bytes
/
exRunTestsInPackage.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%% <../index.html MATLAB xUnit Test Framework>: How to Run Tests in a Package
% To run all the test cases in a package, give the name of the
% package as an argument to |runxunit|. *Note:* Running tests in a package
% requires MATLAB R2009a or later.
%
% For example, suppose you are distributing a set of MATLAB files called the
% "ABC Toolbox." Then you could put your tests inside a package called abc_tests
% and run them like this:
runxunit abc_tests
%%
% (Note that the initial "+" character in the name of the package folder on disk
% is not part of the package name.)
%
% Or you could put your tests inside a subpackage called abc.tests and run them
% like this:
runxunit abc.tests
%%
% You should not use a generic top-level package name such "tests" because then
% your package might be unintentionally combined with packages with the same
% name created by other people.
%%
% <../index.html Back to MATLAB xUnit Test Framework>
%%
% Copyright 2010 The MathWorks, Inc.