Skip to content

Run Tests in Current file/Run Test at Cursor / Do nothing when File is in Diff view #205998

@mahmoudsalah1993

Description

@mahmoudsalah1993

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

  • VS Code Version: 1.86.2
  • OS Version: macOS Sonoma 14.3.1

Steps to Reproduce:

  1. Open a test file with detected tests.
  2. Make an edit.
  3. In Source Control View, select the file to open the file in Diff view
  4. From the command palette, select Test: Run tests in Current File/Test: Run test at Cursor

Expected:
The tests in the current file are run

Actual:
Nothing happens.

image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsiderstestingBuilt-in testing supportverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions