Skip to content

SDK tests with test_reflective_loader get out of sync with gutter icons if new tests are added after running once #5668

@FMorschel

Description

@FMorschel

Describe the bug
When working with the SDK and test_reflective_loader tests, adding a new test after running the suite makes some tests get out of sync with the gutter.

To Reproduce
Steps to reproduce the behavior:

  1. Open pkg/linter/test/rules/prefer_initializing_formals_test.dart (or whatever test file with it)
  2. Run the tests
  3. Add test_a() {} above all other tests
  4. Run again, see the test below it get out of sync with the test gutter

Expected behavior
For the tests to have different gutter icons.

Screenshots

Image

Please complete the following information:

Workspace Environment
Dart Code extension: 3.117.20250813
Flutter extension: 3.117.20250731 (activated)

App: Visual Studio Code
App Host: desktop
Version: win 1.103.2

Workspace type: Dart (LSP) (Multiroot)
Workspace name: sdk (Workspace)

Dart (3.10.0-edge.1a2411efc9a5988d76b967202a99bb9e38f2cbfc): C:\Users\felip_0vh5fa6\dart
Flutter (3.32.8): C:\Users\felip_0vh5fa6\.puro\envs\stable\flutter (No device)

Output from 'dart info'

C:\Users\felip_0vh5fa6\dart\bin\dart.exe info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.10.0-edge.1a2411efc9a5988d76b967202a99bb9e38f2cbfc (main) (Fri Aug 22 04:22:13 2025 -0700) on "windows_x64"
  • on windows / "Windows 11 Pro" 10.0 (Build 26100)
  • locale is pt-BR

Process info

Memory CPU Elapsed time Command line
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe
0 MB -- dart.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions