Open rylew1 opened 1 year ago
The same with me.
Wrong output:
2023-08-05T09:01:43.610Z INFO pytest at 'syncagent': Running pytest with arguments: --rootdir=/config/workspace/ProdDir/syncagent, --junitxml=/tmp/tmp-28125-l5ggf3levPkj, --override-ini, junit_family=xunit1, /config/workspace/ProdDir/syncagent/test_tecls.py
2023-08-05T09:01:43.610Z INFO pytest at 'syncagent': Running pytest as a Python module
2023-08-05T09:01:43.816Z CRIT pytest at 'syncagent': Execution of the test "/config/workspace/ProdDir/syncagent/test_tecls.py" failed: Error: Process exited with code 4: ERROR: file or directory not found: /config/workspace/ProdDir/syncagent/test_tecls.py
In fact, it's path is: /config/workspace/ProdDir/syncagent/pytest_dir/test_tecls.py
Tests are found by the extension - but when I try to run them, they're being run at the wrong path. I'm using a Poetry venv in the default cache dir.
All tests are under:
/Users/me/Desktop/myproject/api/tests
How the test is being called when I try to run them (missing API folder):
/Users/me/Desktop/myproject/tests
From the Python Test Adapter Log:
VSCode Settings: