8000 Stale test markers for dynamic tests come back when using `experimentalTestTracking` and modifying the test · Issue #5734 · Dart-Code/Dart-Code · GitHub
[go: up one dir, main page]

Skip to content

Stale test markers for dynamic tests come back when using experimentalTestTracking and modifying the test #5734

@FMorschel

Description

@FMorschel

Describe the behaviour
With the new experimentalTestTracking set to true, I see a weird behaviour in test_reflective_loader test files once I've tried running a debug session that did not complete any tests.

To Reproduce
Steps to reproduce the behavior:

  1. Go to pkg/analysis_server/lib/src/services/correction/dart/add_digit_separators.dart
  2. Add a breakpoint at the first line inside _AddDigitSeparators.compute (at the time of writing is 69)
  3. Go to pkg/analysis_server/test/src/services/correction/assist/add_digit_separators_test.dart
  4. Disable that breakpoint on the breakpoints tab temporarily
  5. Run the full test file
  6. Enable the breakpoint and run the tests
  7. Once it breaks, stop the debugging session
  8. Go back to the test file and see no gutter icons
  9. Add a new line or something like that (some change, I think even whitespaces might do) and see the gutter icons show up
  10. Removing that change will make them go away
  11. Saving the file (even if you delete the change you made - not undoing) will show the gutter icons again

P.S.: With that flag set to false, the gutter icons simply don't show up until you run the tests again (nobody is tracking the tests' positions).

Expected behavior
I'm not sure if this can be fixed here or up on VS Code or what, but I expect it either to never show the gutter icons or to keep showing them.

Screenshots

20251002_121507.mp4

Logs:

Dart-Code-Log-2025-09-04 12-30-26.txt

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

      0