We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0670c7b commit 04ac0ecCopy full SHA for 04ac0ec
buildfile.m
@@ -11,7 +11,7 @@
11
if isMATLABReleaseOlderThan("R2023b")
12
plan("test") = matlab.buildtool.Task( ...
13
Description="Run tests", ...
14
- Actions=@(~) assert(runtests().Failed == 0));
+ Actions=@(~) assert(run_tests()) );
15
16
plan("check") = matlab.buildtool.Task(...
17
Description="Identify code issues", ...
@@ -32,3 +32,11 @@
32
warnings = find(issues.Severity == 'warning');
33
flag = (numel(errors) == 0) && (numel(warnings) <= warning_threshold);
34
end
35
+
36
+function flag = run_tests()
37
+ flag = true;
38
+ test_results = runtests("IncludeSubfolders",true);
39
+ for test_result=test_results
40
+ flag = flag & (test_result.Failed == 0);
41
+ end
42
+end
0 commit comments