comparison m-toolbox/classes/tests/@ltpda_test_runner/get_class_tests.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % GET_CLASS_TESTS returns an array of test structures.
2 %
3 % The tests for the toolbox classes are gathered in to an array of
4 % structures of the form:
5 %
6 % test.utp % instance of the unit test class
7 % test.methods % a cell-array of the methods to be run
8 %
9 % VERSION: $Id: get_class_tests.m,v 1.2 2010/10/08 06:49:32 hewitson Exp $
10 %
11 function tests = get_class_tests(runner)
12
13 % look in the system test directory
14 loc = which('ltpda_startup');
15 idx = strfind(loc, filesep);
16 loc = loc(1:idx(end));
17 loc = fullfile(loc, '..', '..', 'classes', 'tests');
18
19 tests = runner.get_tests_in_dir(loc);
20
21 end