Skip to content

Commit 725fd39

Browse files
committed
Update testing files
1 parent b7dd5aa commit 725fd39

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

SoftwareTests/PostSmokeTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function PostSmokeTest(ShowReport)
3232
% Format the results in a table and save them
3333
Results = table(Results');
3434
Version = extractBetween(string(Results.Name),"Version=",")");
35-
Passed = Results.Passed;
35+
Passed = logical(Results.Passed);
3636

3737
% Add link to other report
3838
File = fileread(fullfile("public","index.html"));
@@ -51,7 +51,7 @@ function PostSmokeTest(ShowReport)
5151
Badge.message = join("R"+Version," | ");
5252
elseif any(Passed)
5353
Badge.color = "yellowgreen";
54-
Badge.message = join("R")
54+
Badge.message = join("R"+Version(Passed)," | ");
5555
elseif all(~Passed)
5656
Badge.color = "critical";
5757
Badge.message = join("R"+Version," | ");

SoftwareTests/SolnSmokeTests.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function SetUpPath(testCase,Project)
5555
% Check that solutions are on path:
5656
testCase.isSolnOnPath = isfolder("Solutions");
5757
if testCase.isSolnOnPath == 0
58-
addpath(fullfile(testCase.RootFolder,"InstructorResources","Solutions"))
58+
addpath(genpath(fullfile(testCase.RootFolder,"InstructorResources","Solutions")))
5959
end
6060

6161
% Close the StartUp app if still open:
@@ -163,4 +163,14 @@ function SmokeRun(testCase,File)
163163

164164
end % Private Access Methods
165165

166+
methods (TestClassTeardown)
167+
168+
function ResetPath(testCase)
169+
if ~testCase.isSolnOnPath && exist("Solutions","dir")
170+
rmpath(genpath(fullfile(currentProject().RootFolder,"InstructorResources","Solutions")))
171+
end
172+
end
173+
174+
end % TestClassTeardown
175+
166176
end % SolnSmokeTests

resources/project/qaw0eS1zuuY1ar9TdPn1GMfrjbQ/ND1paoxO_gAn0xODWcXslm82AWod.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.

resources/project/qaw0eS1zuuY1ar9TdPn1GMfrjbQ/ND1paoxO_gAn0xODWcXslm82AWop.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)