Skip to content

Commit

Permalink
Update createTestedWithBadgeforToolbox.m
Browse files Browse the repository at this point in the history
Update test failure counting to account for non-scalar test suites
  • Loading branch information
ehennestad committed Sep 29, 2024
1 parent 31b3b16 commit fdc8849
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/tasks/createTestedWithBadgeforToolbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function createTestedWithBadgeforToolbox(versionNumber, rootDir)
% Read the test results file
testResults = readstruct(testresultsFilename);
% If no tests failed, errors, or were skipped, then add it to the list
if testResults.testsuite.errorsAttribute == 0 && testResults.testsuite.failuresAttribute == 0 && testResults.testsuite.skippedAttribute == 0
if sum([testResults.testsuite.errorsAttribute]) == 0 ...
&& sum([testResults.testsuite.failuresAttribute]) == 0 ...
&& sum([testResults.testsuite.skippedAttribute]) == 0
if releasesTestedWith ~= ""
% Insert the seperator between released after the first one
releasesTestedWith = releasesTestedWith + " | ";
Expand Down

0 comments on commit fdc8849

Please sign in to comment.