-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrunTests.m
More file actions
37 lines (25 loc) · 863 Bytes
/
runTests.m
File metadata and controls
37 lines (25 loc) · 863 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
30
31
32
33
34
35
36
37
function runTests()
%
% (C) Copyright 2022 CPP_BIDS developers
% Elapsed time is ??? seconds.
tic;
thisPath = fileparts(mfilename('fullpath'));
cd(thisPath);
fprintf('\nHome is %s\n', getenv('HOME'));
warning off;
more off;
cpp_bids('dev');
folderToCover = fullfile(thisPath, 'src');
testFolder = fullfile(thisPath, 'tests');
success = moxunit_runtests(testFolder, ...
'-verbose', '-recursive', '-with_coverage', ...
'-cover', folderToCover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(thisPath, 'coverage_html'));
if success
system('echo 0 > test_report.log');
else
system('echo 1 > test_report.log');
end
toc;
end