forked from cpp-lln-lab/spm_2_bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.m
25 lines (18 loc) · 819 Bytes
/
run_tests.m
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
% (C) Copyright 2019 spm_2_bids developers
thisDir = fileparts(mfilename('fullpath'));
folderToCover = fullfile(thisDir, 'src');
addpath(genpath(folderToCover));
if isdir(fullfile(thisDir, 'lib', 'bids-matlab'))
addpath(fullfile(thisDir, 'lib', 'bids-matlab'));
end
if isdir(fullfile(thisDir, 'lib', 'JSONio'))
addpath(fullfile(thisDir, 'lib', 'JSONio'));
end
testFolder = fullfile(thisDir, 'tests');
addpath(fullfile(testFolder, 'utils'));
success = moxunit_runtests(testFolder, ...
'-verbose', '-recursive', '-with_coverage', '-randomize_order', ...
'-cover', folderToCover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(pwd, 'coverage_html'));
exit(double(~success));