Skip to content

Commit 819e78d

Browse files
committed
Fixed relative paths after moving base test classes to test tool folder. Adjusted MATLAB project accordingly.
1 parent 0ed5039 commit 819e78d

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

.github/workflows/run_book_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
test-results-junit: ${{ matrix.junit }}
107107
code-coverage-cobertura: ${{ matrix.cobertura }}
108108

109-
source-folder: toolbox; toolbox/internal; test/book/base
109+
source-folder: toolbox; toolbox/internal; test/tools
110110
startup-options: -webfigures
111111
# Run tests in parallel. Requires Parallel_Computing_Toolbox in "products" list above
112112
use-parallel: false

.github/workflows/run_toolbox_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# Only run tests in test/toolbox folder
3939
uses: matlab-actions/run-tests@v2
4040
with:
41-
source-folder: toolbox; toolbox/internal; test/book/base
41+
source-folder: toolbox; toolbox/internal; test/tools
4242
select-by-folder: test/toolbox
4343
test-results-junit: test-results/unit_tests.xml
4444
code-coverage-cobertura: code-coverage/unit_tests_coverage.xml

resources/project/Project.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4299,16 +4299,10 @@
42994299
</DIR_SIGNIFIER>
43004300
</File>
43014301
<File Location="base">
4302-
<File Location="RVCTest.m">
4303-
<Info/>
4304-
</File>
43054302
<Info/>
43064303
<DIR_SIGNIFIER Location="1">
43074304
<Info/>
43084305
</DIR_SIGNIFIER>
4309-
<File Location="RunMLX.m">
4310-
<Info/>
4311-
</File>
43124306
</File>
43134307
<File Location="chapter03">
43144308
<File Location="tChapter3.m">
@@ -4417,6 +4411,18 @@
44174411
</Info>
44184412
</File>
44194413
</File>
4414+
<File Location="tools">
4415+
<Info/>
4416+
<File Location="RVCTest.m">
4417+
<Info/>
4418+
</File>
4419+
<DIR_SIGNIFIER Location="1">
4420+
<Info/>
4421+
</DIR_SIGNIFIER>
4422+
<File Location="RunMLX.m">
4423+
<Info/>
4424+
</File>
4425+
</File>
44204426
</File>
44214427
</Files>
44224428
<ProjectData Location="Root"/>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function setRVC3Path(testCase)
2525

2626
import matlab.unittest.fixtures.PathFixture
2727

28-
rvc3Dir = fullfile(fileparts( mfilename("fullpath") ), "..", "..", "toolbox");
28+
rvc3Dir = fullfile(fileparts( mfilename("fullpath") ),"..","..","toolbox");
2929
testCase.applyFixture( PathFixture(fullfile(rvc3Dir)) );
3030
testCase.applyFixture( PathFixture(fullfile(rvc3Dir, "data")) );
3131
testCase.applyFixture( PathFixture(fullfile(rvc3Dir, "examples")) );
@@ -36,7 +36,7 @@ function setRVC3Path(testCase)
3636
function setRootProperties(testCase)
3737
%setRootProperties Set properties to define root folders
3838

39-
repoDir = fullfile(fileparts( mfilename("fullpath") ), "..", "..");
39+
repoDir = fullfile(fileparts( mfilename("fullpath") ),"..","..");
4040
testCase.RVCToolboxRoot = fullfile(repoDir, "toolbox");
4141
testCase.BookRoot = fullfile(repoDir, "book");
4242
end

0 commit comments

Comments
 (0)