File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1616% Get list of example scripts in path
1717exName = {dir(fullfile(projObj .RootFolder ,' toolbox/examples' ,' **/*.m' )).name}' ;
1818exName = exName(isFileOnPath(exName ));
19+ exName = filterOutTests(exName );
1920exParam = Parameter .fromData(' exName' ,exName );
2021
2122suite = TestSuite .fromProject(projObj ,' ExternalParameters' ,exParam );
4243for ii = 1 : length(filename )
4344 onPath(ii ) = exist(filename{ii }," file" )>0;
4445end
46+ end
47+
48+ function testcases = filterOutTests(testcases )
49+
50+ % Example doesn't work without real EEG data
51+ testcases(ismember(testcases ,{' demo_mu_rhythm_phase_triggering.m' })) = [];
52+
53+ if ~isMATLABReleaseOlderThan(" R2025a" )
54+ % Issue when reading sample rate from osc_alpha_ip. Diff is not constant
55+ testcases(ismember(testcases ,{' demo_phase_prediction_error_simple.m' })) = [];
56+ end
57+
4558end
Original file line number Diff line number Diff line change 66% 4) The stimulator is Switched On, External Trigger mode is turned on and the Stimulator is Enabled
77% Press Ctrl+C on MATLAB command line to stop the script anytime
88
9- %% Help functions for automated testing
10- % Skip this script if running in the CI pipeline
11- if batchStartupOptionUsed
12- return ;
13- end
149
1510%% Initializing Demo Script Variables;
1611no_of_trials= 10 ;
You can’t perform that action at this time.
0 commit comments