skip to Main Content

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?

enter image description here

2

Answers


  1. 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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search