Skip to content

Commit

Permalink
Move test to test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JAAdrian committed Nov 7, 2020
1 parent ca20f63 commit ce181d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ProgressBar_test.m → tests/ProgressBar_test.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

properties
UnitName = "ProgressBar";

Seed;
end

Expand All @@ -26,6 +25,15 @@ function setClassRng(testCase)

rng(testCase.DEFAULT_SEED);
end

function addPath(testCase)
defaultPath = matlabpath();

myLocation = fileparts(mfilename('fullpath'));
addpath(fullfile(myLocation, '..'));

testCase.addTeardown(@() matlabpath(defaultPath));
end
end

methods (TestMethodSetup)
Expand Down

0 comments on commit ce181d9

Please sign in to comment.