-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escape pytest in zsh terminal when debuging the tests #4911
Comments
Please could you test this with the latest version of the extension and confirm it exists.
Please can you be more specific with the |
Hi, I repeated the test with python extension version 2019.3.6352, and the symptoms are the same. Steps:
In recent releases, I found python extension becoming much much better than before on pytest functions! Thanks very much for your effort! It helps me make the choice between vscode and pycharm. :) Thanks! |
Debugging parameterized tests works for me, see below
This issue is being tracked here #4469 |
Still experiencing this issue as of v2020.8.103604. A usable workaround is adding |
Still experiencing this too.. any chance for an update after @cranechu's comment? |
@evilmav is there any way to make |
Hi, I am also having this issue where I always get a message saying that the test could not be found. Running outside debugging it works just great but not being able to debug a test takes away very much needed functionality. When they are launched and fail VSCode reports a timeout issue as well and I can never run them again unless I restart vscode which makes the entire process very cumbersome. Do you have any update in this? I am u sing zsh for the terminal and my python extension version is v2021.4.765268190. Here is test case that has the same properties as the tests I cannot run. Probably something simpler would reproduce the issue as well but I wanted to be as close as possible to what I have def val1():
yield "val1"
def val2():
yield "val1 and val2"
@pytest.fixture(params=["val1", "val2"])
def fixture_factory(request):
values = {
"val1": val1,
"val2": val2,
}
yield from values[request.param]()
def test_factory(fixture_factory):
print("Entering test")
assert isinstance(fixture_factory, str) |
Hello! We have finished our testing rewrite and it is enabled for all users.You can confirm you have the rewrite enabled by setting your log level to trace in your command palette then check for Let me know if the rewrite fixes your issue. Thanks! |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
Environment data
Expected behaviour
Debug parameterized pytest by click the "bug" logo in the test tree view, the debugger should start.
Actual behaviour
Debug parameterized pytest (e.g. test_qpair_different_size[5] below), but cannot find the test.
For normal pytest cases, the debug just works, e.g. test_create_device_invalid below.
Steps to reproduce:
Logs
The text was updated successfully, but these errors were encountered: