Skip to content

Add scrollbar indicators for failing tests - #307996

Merged
Connor Peet (connor4312) merged 1 commit into
microsoft:mainfrom
yogeshwaran-c:feat/testing-scrollbar-indicators-failing-tests
Apr 6, 2026
Merged

Connor Peet (connor4312) merged 1 commit into
microsoft:mainfrom
yogeshwaran-c:feat/testing-scrollbar-indicators-failing-tests

Conversation

@yogeshwaran-c

@yogeshwaran-c Yogeshwaran C (yogeshwaran-c) commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds overview ruler (scrollbar) markers for tests in a failed or errored state in the editor's gutter test decorations
  • When a test fails, a red indicator now appears in the editor scrollbar at the line where the test is defined
  • Uses the existing overviewRulerError theme color and OverviewRulerLane.Center positioning, consistent with how TestMessageDecoration already uses overview ruler indicators for error messages

This is a small, targeted change to createRunTestDecoration() in testingDecorations.ts. The TestMessageDecoration class already shows overview ruler indicators for test error messages, but the gutter decorations marking where tests are defined did not. This makes it easier to spot failing tests in large files without scrolling through the entire document.

Fixes #143203

Test plan

  • Open a project with tests in a large file
  • Run the tests so that some fail
  • Verify that red indicators appear in the scrollbar/overview ruler at the lines where failing tests are defined
  • Verify that passing/unset tests do NOT show scrollbar indicators
  • Verify that the indicators use the standard error color from the theme (editorOverviewRuler.warningForeground)

Add overview ruler (scrollbar) markers for tests in a failed or errored
state. When a test fails, a red indicator now appears in the editor
scrollbar at the line where the test is defined, making it easier to
spot failing tests in large files without scrolling through the entire
document.

Fixes microsoft#143203

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@connor4312
Connor Peet (connor4312) enabled auto-merge (squash) April 6, 2026 15:47
@connor4312
Connor Peet (connor4312) merged commit 363cc80 into microsoft:main Apr 6, 2026
19 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.116.0 milestone Apr 6, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators May 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: Add scrollbar indicators for failing tests

3 participants