vscode-python-test-adapter icon indicating copy to clipboard operation
vscode-python-test-adapter copied to clipboard

pytestPath setting doesnt work when debugging

Open icyitscold opened this issue 4 months ago • 0 comments

I have a customized pytestPath script with sets up some system paths that are necessary to run tests in my repo. When I use the "python.testing.pytestPath": "${workspaceFolder}/bin/pytest"` setting, running a test works fine but when I debug test, you can see the debug output doesnt use the configured path:

cd /Users/***/app ; /usr/bin/env /Users/***/.pyenv/versions/app/bin/python /Users/***/.vscode/extensions/ms-python.debugpy-2024.10.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 54591 -- -m pytest  /Users/***/app/tests/forms/test_example.py::TestForm::test_example_form 

I've been playing with settings and launch configs for a couple of hours now, but it seems like an extension code change is needed to get test debugging working?

icyitscold avatar Sep 27 '24 17:09 icyitscold