We placed the unit tests directly into each submodule:
/+Module1/+unitTests/TestFile.m
After adding the testfile folder or adding the testfile (click on "Add Test Folder" button or "Add Test File" button), the tests and testfiles are shown as:
Module1.unitTests.TestClass.m
TestFunction
Running the test results in "The test run did not record any output. "
Right-click on Test --> Go to Test I receive the following error message:
The editor could not be opened because the file was not found.
The editor tries to open the file Module1.unitTests.Testclass.m
Conclusion: When loading test files placed in a submodule, the extension assumes that the path is Module.submodule.testfile.m instead of +Module/+submodule/testfile.m
Expected behaviour: Testfiles in submodules (+Folder/+Folder2/testfile.m) should work.
Useful Information
- VSCode: 1.133.0
- Matlab Extension: v1.3.13
- Matlab 2023b
- OS: Windows 11
All tests run without any issue in Matlab
Screenshots
File in Explorer:

File in Testing:

We placed the unit tests directly into each submodule:
/+Module1/+unitTests/TestFile.mAfter adding the testfile folder or adding the testfile (click on "Add Test Folder" button or "Add Test File" button), the tests and testfiles are shown as:
Running the test results in "The test run did not record any output. "
Right-click on Test --> Go to Test I receive the following error message:
The editor could not be opened because the file was not found.The editor tries to open the file
Module1.unitTests.Testclass.mConclusion: When loading test files placed in a submodule, the extension assumes that the path is Module.submodule.testfile.m instead of +Module/+submodule/testfile.m
Expected behaviour: Testfiles in submodules (+Folder/+Folder2/testfile.m) should work.
Useful Information
All tests run without any issue in Matlab
Screenshots
File in Explorer:


File in Testing: