Skip to content

Add scrollbar indicators for failing tests#307996

Merged
connor4312 merged 1 commit intomicrosoft:mainfrom
yogeshwaran-c:feat/testing-scrollbar-indicators-failing-tests
Apr 6, 2026
Merged

Add scrollbar indicators for failing tests#307996
connor4312 merged 1 commit intomicrosoft:mainfrom
yogeshwaran-c:feat/testing-scrollbar-indicators-failing-tests

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

@yogeshwaran-c yogeshwaran-c commented Apr 6, 2026

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) <noreply@anthropic.com>
@connor4312 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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