Skip to content

Tests skipped due to solo do not have their locations set correctly #5931

Closed

Description

@DanTup

Splitting this from #5930 since it's separate to the fix for handling null properly in Dart-Code.

It appears that evt.test.root_url is undefined but evt.test.url is null, and maybeUriToFilePath handles undefined but not null.

{"seq":2273,"type":"event","body":{"test":{"id":5,"name":"AddStaticTest test_multipleFields","suiteID":0,"groupIDs":[2,3],"metadata":{"skip":true,"skipReason":"does not have \"solo\""},"line":null,"column":null,"url":null},"type":"testStart","time":1055},"event":"dart.testNotification"}

It's not clear to me why we would have nulls here instead of the actual location of the test. Could it be a bug upstream?

Activity

  1. added this to the v3.130.0 milestone on Feb 25, 2026
  2. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Feb 25, 2026
  3. DanTup commented on Feb 26, 2026

    @DanTup
    MemberAuthor
  4. DanTup commented on Feb 26, 2026

    @DanTup
    MemberAuthor
  5. changed the title [-]Skipped tests might not have locations?[/-] [+]Tests skipped due to `solo` do not have their locations set correctly[/+] on Feb 26, 2026
  6. modified the milestones: v3.130.0, v3.132.0 on Feb 26, 2026
  7. FMorschel commented on Feb 27, 2026

    @FMorschel
    Contributor

    This has landed on the SDK https://dart-review.googlesource.com/c/sdk/+/483863.

    Is this why, when I used @soloTest, the other test gutter icons vanished?

  8. DanTup commented on Feb 27, 2026

    @DanTup
    MemberAuthor

    Is this why, when I used @soloTest, the other test gutter icons vanished?

    Hmm, I'm not sure, but it sounds very plausible. Try it out and let me know if that doesn't get fixed on latest.

    (I'll close this since the fix landed, although users will need to get the latest pkg:test - which hasn't been published yet - to get the fix in their own projects)

  9. FMorschel commented on Feb 27, 2026

    @FMorschel
    Contributor

    Yes, this is now fixed. But now I see Skip: does not have "solo" in the Test Results and Debug Console for every other test. I suspect we were not getting those because we weren't handling them correctly without a location previously (because of #5930).

    Which test reporter are we using?

  10. DanTup commented on Feb 27, 2026

    @DanTup
    MemberAuthor

    But now I see Skip: does not have "solo" in the Test Results and Debug Console for every other test. I suspect we were not getting those because we weren't handling them correctly without a location previously (because of #5930).

    It's possible - could you file an issue with a screenshot of what you see?

    Which test reporter are we using?

    We're using the json reporter, since we need the output in json so we can parse the tests/groups/etc.

  11. FMorschel commented on Feb 27, 2026

    @FMorschel
    Contributor

    I've opened #5938

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bugrelies on package changesSomething that requires changes in a package to ship and be updated to

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions