@@ -68,15 +68,18 @@ function verifyAllTestsPassedInArtifact(testCase, ResultArtifactPath)
6868 rootFolder = testCase.Project{1 }.RootFolder;
6969 resultFiles = FileCollection .fromPaths(fullfile(rootFolder , " public" , ResultArtifactPath , " *.mat" )).paths;
7070
71- loadedData = load(resultFiles , " result" );
72- testCase .assertTrue(isfield(loadedData , " result" ), ...
73- " Missing variable 'result' in artifact: " + ResultArtifactPath );
71+ allResults = [];
72+ for i = 1 : numel(resultFiles )
73+ loadedData = load(resultFiles(i ), " result" );
74+ testCase .assertTrue(isfield(loadedData , " result" ), ...
75+ " Missing variable 'result' in artifact: " + resultFiles(i ));
76+ allResults = [allResults , loadedData .result]; % #ok<AGROW>
77+ end
7478
75- result = loadedData .result;
76- testCase .assertNotEmpty(result , ...
79+ testCase .assertNotEmpty(allResults , ...
7780 " Result array is empty in artifact: " + ResultArtifactPath );
7881
79- passedValues = [result .Passed];
82+ passedValues = [allResults .Passed];
8083 testCase .assertNotEmpty(passedValues , ...
8184 " Result.Passed is empty in artifact: " + ResultArtifactPath );
8285
0 commit comments