Skip to content
Snippets Groups Projects
Commit bdc4b873 authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Check gdat paths again in fixture

parent 6e8ce868
Branches
Tags
1 merge request!110Add test coverage and update test scripts
classdef check_gdatpaths < matlab.unittest.fixtures.Fixture
methods
function setup(fixture)
% caller
oldpwd = pwd;
testfolder = fileparts(fullfile(mfilename('fullpath'))); % relative path w.r.t. this file
cd(testfolder); % go into test folder so you might not see local gdat.m
gdatpath = fileparts(which('gdat'));
cd(oldpwd);
fixture.assertTrue(startsWith(testfolder,gdatpath),...
sprintf('test folder path does not contain path of gdat: %s\n This file is in: %s\n which(''gdat''):\n Please run setpaths_gdat() to set the paths',...
testfolder,which('gdat')));
end
end
end
classdef (SharedTestFixtures={... classdef (SharedTestFixtures={...
check_mds}) ... check_mds,check_gdatpaths}) ...
test_requestnames < matlab.unittest.TestCase test_requestnames < matlab.unittest.TestCase
properties (Abstract) properties (Abstract)
......
classdef (SharedTestFixtures={... classdef (SharedTestFixtures={...
check_mds})... check_mds,check_gdatpaths})...
test_tcv_get_ids < matlab.unittest.TestCase test_tcv_get_ids < matlab.unittest.TestCase
properties(TestParameter) properties(TestParameter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment