view m-toolbox/classes/tests/@ltpda_test_runner/get_class_tests.m @ 28:01b86b780ba7 database-connection-manager

Remove LTPDARepositoryManager implementation. Java code
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

% GET_CLASS_TESTS returns an array of test structures.
% 
% The tests for the toolbox classes are gathered in to an array of
% structures of the form:
% 
%   test.utp     % instance of the unit test class
%   test.methods % a cell-array of the methods to be run
% 
% VERSION: $Id: get_class_tests.m,v 1.2 2010/10/08 06:49:32 hewitson Exp $
% 
function tests = get_class_tests(runner)
  
  % look in the system test directory
  loc = which('ltpda_startup');
  idx = strfind(loc, filesep);
  loc = loc(1:idx(end));
  loc = fullfile(loc, '..', '..', 'classes', 'tests');
  
  tests = runner.get_tests_in_dir(loc);  
  
end