microsoft / microsoft/PTVS

There is no info bar appear to suggest install pytest when Test Explorer is open

Open
#7,745 1 comment 0 reactions 1 assignee View on GitHub

@StellaHuang95 is already working on this.

Since Dec 12, 2023.

bug P2
Dominant language
C#
Stars
2.6k
Forks
680
Avg merge
39m
Merged PRs (30d)
1

Description

Environment
image

Steps to Reproduce
1.Open a folder and add a python file
2.Test->Test Explorer
3.Select a python environment and not install pytest
4.Enable "Show All files" in "Solution Explorer" to open PythonSettings.json file under "Local settings" folder
5.Add a property "TestFramework":"pytest" in "PythonSettings.json"
image
6.Restart VS and reopen the folder
7.Open the python file
8.Make sure an info bar should appear to suggest install pytest
image

Expected behavior
An info bar should appear
image

Actual behavior
No info bar appear
image
infobar_incorrect

Additional context and screenshots
The info bar appears normally when TE is closed
infobar_correct

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.