We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To run the tests using the VS code test tree, one of 2 configuration options needs to be added to the launch.json file within the .vscode directory.
launch.json
.vscode
Use the integratedTerminal which will have sourced the virtual environment prior to running `pytest'
integratedTerminal
{ "name": "Python: Debug Tests", "type": "python", "request": "launch", "program": "${file}", "purpose": ["debug-test"], "console": "integratedTerminal", "justMyCode": false }
Prepend the virtual environment's bin directory to the system PATH:
bin
{ "name": "Python: Debug Tests", "type": "python", "request": "launch", "program": "${file}", "purpose": ["debug-test"], "env": {"PATH": "${workspaceFolder}/venv/bin"}, "justMyCode": false }
This will allow the ansible-config executable to be found in the current virtual environment.
ansible-config
This is not an ansible-lint issue, but a known issue with VS Code, here for tracking and linking purposes.
ansible-lint
Feel free to close this, or possible we might add it to the dev docs:
Related: microsoft/vscode-python#4300
The text was updated successfully, but these errors were encountered:
This seems to be fixed as we're able to see the tests in test explorer
Sorry, something went wrong.
audgirka
No branches or pull requests
Summary
To run the tests using the VS code test tree, one of 2 configuration options needs to be added to the
launch.json
file within the.vscode
directory.Option 1:
Use the
integratedTerminal
which will have sourced the virtual environment prior to running `pytest'Option 2
Prepend the virtual environment's
bin
directory to the system PATH:This will allow the
ansible-config
executable to be found in the current virtual environment.This is not an
ansible-lint
issue, but a known issue with VS Code, here for tracking and linking purposes.Feel free to close this, or possible we might add it to the dev docs:
Related: microsoft/vscode-python#4300
The text was updated successfully, but these errors were encountered: