forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster
Description
Due to the usage of docker-compose my python app is in a subdirectory of the workspace therefore I want to do something like this:
"python.testing.pytestArgs": [
"--rootdir=/composeDir/app",
"tests"
],
"python.testing.cwd": /composeDir/appbut this does not work as expected. Since the --rootdir option is passed to pytest by default with the workspace location, vscode executes this
python /root/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir /composeDir -s --cache-clear /composeDir/manager
In other words the custom rootdir option becomes the argument and "tests" is completely ignored.
Andrew-Harsh-CallPotential, Larleyt, thomassajot, aiwabdn, dmartin and 3 moreMBARIMike
Metadata
Metadata
Assignees
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster