File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ function package(skipTests)
66 if ~skipTests
77 test();
88 end
9- addpath(genpath(fullfile(' src' , ' main' )));
10- projectFile = fullfile(fileparts(mfilename(' fullpath' )), ' Symphony.prj' );
9+
10+ rootPath = fileparts(mfilename(' fullpath' ));
11+
12+ addpath(genpath(fullfile(rootPath , ' lib' )));
13+ addpath(genpath(fullfile(rootPath , ' src' )));
14+
15+ projectFile = fullfile(rootPath , ' Symphony.prj' );
1116
1217 dom = xmlread(projectFile );
1318 root = dom .getDocumentElement();
Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ function test(package)
22 if nargin < 1
33 package = ' symphonyui' ;
44 end
5- addpath(genpath(fullfile(' src' , ' test' )));
5+
6+ rootPath = fileparts(mfilename(' fullpath' ));
7+
8+ addpath(genpath(fullfile(rootPath , ' lib' )));
9+ addpath(genpath(fullfile(rootPath , ' src' )));
10+
611 suite = matlab .unittest .TestSuite .fromPackage(package , ' IncludingSubpackages' , true );
712 results = run(suite );
813
You can’t perform that action at this time.
0 commit comments