-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun_tests.m
More file actions
29 lines (19 loc) · 832 Bytes
/
run_tests.m
File metadata and controls
29 lines (19 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% (C) Copyright 2019 CPP ROI developers
warning('OFF');
spm('defaults', 'fMRI');
thisDir = fileparts(mfilename('fullpath'));
folderToCover = fullfile(thisDir, 'src');
testFolder = fullfile(thisDir, 'tests');
addpath(genpath(folderToCover));
addpath(fullfile(testFolder, 'utils'));
addpath(fullfile(thisDir, 'atlas'));
if isdir(fullfile(thisDir, 'lib', 'bids-matlab'))
addpath(fullfile(thisDir, 'lib', 'bids-matlab'));
end
success = moxunit_runtests(testFolder, ...
'-verbose', '-recursive', '-randomize_order', ...
'-with_coverage', ...
'-cover', folderToCover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(thisDir, 'coverage_html'));
exit(double(~success));