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
Create a virtual env in the project folder (we recommend this to avoid installing packages to your global environment). You can do this by running py -3 -m venv .venv (on windows), or python3 -m venv .venv (on linux/mac). Note: for nix/mac users you may have to install venv depending on your distribution.
Once you have the virtual env, select it using the Python: select interpreter command or from the status bar.
Now you have to configure tests using Python: configure tests... command from the command pallet, or go the test view and configure by using the test welcome view, or you can run tests to get a prompt to configure. Select pytest and follow the prompt.
Depending on the scenario you may either get a prompt to install pytest or the extension will install pytest for you. If for some reason it does not install for you or get the prompt (file a bug). But do install it manually using this command from a activated terminal (see the .venv in the prompt indicated it is activated)
You should see the tests in the test view. Run the tests.
Add your own test methods, or add another test file, the test UI should update accordingly.
Jim Griesmer (@greazer) A friendly reminder to test this Test Plan Item. If you are busy with other stuff please let me know so that I can ask someone else to test. Thanks.
Activity
isidorn commentedon Aug 24, 2021
Works nice, good job 👏
sandy081 commentedon Aug 26, 2021
Jim Griesmer (@greazer) A friendly reminder to test this Test Plan Item. If you are busy with other stuff please let me know so that I can ask someone else to test. Thanks.