Skip to content

Don't remove non-outline nodes that don't show up in test runs #5739

Closed

Description

@DanTup

There were two different issues reported in #5734:

  1. The test markers for tests that aren't run disappear
  2. The test markers come back when modifying the file

I'm using that issue to track the second, but this is to track the first. It's actually by-design as the code currently is. Without the new tracking, we don't know if the test was not in the results because a) you stopped running early (or used @soloTest) or b) you had deleted the test.

However, with the new test tracking, we could perhaps remove the functionality of deleting "potentially deleted" nodes and instead just rely on the tracking to handle it (remove the node when the tracked position goes away).

It will be easier to do this when we're just using the new tracking by default, so bumping this until then,

Activity

  1. added this to the On Deck milestone on Oct 7, 2025
  2. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Oct 7, 2025
  3. DanTup commented on Dec 3, 2025

    @DanTup
    MemberAuthor

    Turns out we still need this code to handle removed outline nodes, it needs to just not do result nodes.

  4. changed the title [-]Reconsider removing "potentially deleted" tests once using new test tracking by default[/-] [+]Don't remove non-outline nodes that don't show up in test runs[/+] on Dec 3, 2025
  5. modified the milestones: On Deck, v3.126.0 on Dec 3, 2025
  6. DanTup commented on Dec 3, 2025

    @DanTup
    MemberAuthor

    It turns out, we also need this for dynamic tests. Consider:

    test_foo1() {}

    We rename it:

    test_foo2() {}

    And then re-run the file. We need to clean test_foo1 from the results, because we do not track renames of tests (only movement of the ranges).

    So this will have to stay as-is. Unfortunately this means if you run a solo-test, the markers for the other tests will still vanish, but I don't have a good solution to that that doesn't introduce other issues right now.

  7. removed this from the v3.126.0 milestone on Dec 3, 2025
  8. added and removed
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions