Skip to content

Testfile Folder in Submodule #345

Description

@StefanB1234

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:
Image
File in Testing:
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions