From 7a374260eae7a238fdacca93f5688e9b2baab076 Mon Sep 17 00:00:00 2001 From: Federico Felici <federico.felici@epfl.ch> Date: Thu, 30 Sep 2021 14:43:09 +0200 Subject: [PATCH] further run_gdat_tests fixes --- matlab/run_gdat_tests.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/matlab/run_gdat_tests.m b/matlab/run_gdat_tests.m index a656c778..31a02d14 100644 --- a/matlab/run_gdat_tests.m +++ b/matlab/run_gdat_tests.m @@ -2,8 +2,9 @@ function [passed,results] = run_tbx_tests(test_case) % Test runner for generic toolbox tests if nargin==0 || isempty(test_case) - test_case = 'basic'; % default + test_case = 'basic-tcv'; % default end +test_case = lower(test_case); % lowercase if nargin < 2 coverage_report = false; % default @@ -16,7 +17,6 @@ needCOV=~isempty(getenv('GITLAB_CI')) && ~verLessThan('matlab','9.6.0') || cover %% Default outputs passed=false; results=[]; % default outputs -test_case = lower(test_case); % lowercase %% Import some classes we need import matlab.unittest.selectors.HasTag; @@ -45,7 +45,10 @@ end testspath = fullfile(tbxpath,'tests'); lastwarn('',''); -suite_all = matlab.unittest.TestSuite.fromFolder(testspath); + +suite_all = [matlab.unittest.TestSuite.fromClass(?fullfile(testspath,test_requestnames_tcv)),... + matlab.unittest.TestSuite.fromClass(?fullfile(testspath,test_tcv_get_ids))]; + [~,s] = lastwarn(); if isequal(s,'MATLAB:unittest:TestSuite:FileExcluded') fprintf('File excluded during test suite creation - possible syntax errors in a test class'); -- GitLab