-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using the VSCode Test Explorer in mixed-code workspace to run Python pytest tests, a connection to MATLAB is created that blocks the tests from finishing.
I suspect this is not limited to Python/pytest, but I encountered the issue in this setup.
This only happens if MATLAB.startDebuggerAutomatically is enabled.
To Reproduce
Steps to reproduce the behavior:
- Create a VS Code folder or workspace that has both MATLAB and Python code.
- Create a pylint test that is unrelated to MATLAB, e.g.,
test_Pytest.py:test_foo(): assert True
- Enable pytest tests and make sure the test is shown in the Test Explorer.
- Perform an action that establishes a connection to MATLAB (e.g., open an M file or run an M file depending on the extension settings).
- In the Test Explorer, run "Debug Test" for the pytest test.
- Expected behavior The pytest test runs and the verdict is shown as green checkmark in the Test Explorer.
Screenshots
The test execution does not finish
Go to "Run and Debug" and disconnect MATLAB in the call stack:
Now the Test Explorer shows the verdict.
Useful Information
- OS Version: Windows 10 Pro 22H2
- VS Code Version: 1.96.4
- MATLAB Extension Version: 1.3.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

