I created launch json for tests in vscode and it works well in terminal, but vscode don’t see tests in the side bar, becouse side bar don’t get environment variables from launch.json. How to add environment variables for the side bar?
I think your tests not being detected is not because of your environment variables. It is because you have not set your python interpreter in vscode properly.
2
Answers
Open vscode without any file and folder.
Go to your folder which is stocking launch.json and drag & drop your folder on VScode. And retry your test
I think your tests not being detected is not because of your environment variables. It is because you have not set your python interpreter in vscode properly.