-
Notifications
You must be signed in to change notification settings - Fork 6
/
runTests.m
38 lines (27 loc) · 930 Bytes
/
runTests.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
26
27
28
29
30
31
32
33
34
35
36
37
38
function runTests()
%
% (C) Copyright 2022 CPP visual motion localizer developers
% Elapsed time is ??? seconds.
tic;
initEnv();
if bids.internal.is_github_ci
fprintf(1, '\nThis is github CI\n');
else
fprintf(1, '\nThis is not github CI\n');
end
fprintf('\nHome is %s\n', getenv('HOME'));
warning('OFF');
folderToCover = fullfile(pwd, 'subfun');
testFolder = fullfile(pwd, 'tests');
success = moxunit_runtests(testFolder, ...
'-verbose', '-recursive', '-with_coverage', ...
'-cover', folderToCover, ...
'-cover_xml_file', 'coverage.xml', ...
'-cover_html_dir', fullfile(pwd, 'coverage_html'));
if success
system('echo 0 > test_report.log');
else
system('echo 1 > test_report.log');
end
toc;
end