You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"python.unitTest.pyTestArgs": [
"-v", // increase verbosity
"-l", // show locals in tracebacks
"-x", // exit instantly on first error or failed test
"--ff", // run all tests but run the last failures first
"--show-capture=all", // captured stdout/stderr/log is shown on failed tests
"--color=yes", // color terminal output (yes/no/auto)
//"--rootdir=${workspaceFolder}/",
"tests", // starting directory for discovering tests
],
"python.unitTest.pyTestEnabled": true
3.Vscode cmd: > Python: Debug All Unit Tests
The text was updated successfully, but these errors were encountered:
Environment data
Actual behavior
Vscode don't load envFile vars in "Debug Unit Tests (Pytest)" mode, only in "Run Unit Tests (Pytest)" mode or in default "Debug/Run" modes.
Expected behavior
To load envFile vars to os.environ
Steps to reproduce:
"python.envFile": "${workspaceFolder}/dev.env",
2.Config PyTest
3.Vscode cmd:
> Python: Debug All Unit Tests
The text was updated successfully, but these errors were encountered: