Closed
Description
Can I get any help with pytest discovery failure?
> /usr/local/bin/python ~/.vscode-server/extensions/ms-python.python-2022.0.1786462952/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear
cwd: .
[ERROR 2022-1-3 23:36:9.283]: Error discovering pytest tests:
[r [Error]: Graceful shutdown completed in 0.000 seconds.
at ChildProcess.<anonymous> (/root/.vscode-server/extensions/ms-python.python-2022.0.1786462952/out/client/extension.js:32:39235)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)]
Tried many different options with "python.testing.cwd" and "python.testing.pytestArgs" but without luck.
I used unit tests in the past and they work fine in VS Code.
Also I use VS Code with "Remote Container" and work inside the Docker container and run tests inside it.
Hope that you can solve this issue soon, because with pytest it doesn't work for me. And I have no clear vision why. Thanks.