Skip to content

Testing interface is not detecting my .env file #22166

@mayank2gupta

Description

@mayank2gupta

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

  1. create the below project structure
    image
  2. set the path of .env file in settings.json file
    image
  3. try to open the testing icon it will give test discovery error due to module not found error, But I have already defined that modules path in .env file and configured it in setttings .json
    image
    image

Meanwhile when I am trying to run it in Integrated terminal it's running absolutely fine

I have tried all the ways possible but I am not able to figure out the issue can someone help me on this

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions