Skip to content

pkg:test version check fails when output contains package resolution info #5935

Closed

Description

@DanTup

We run this --version command to get the version of pkg:test, but it often has additional text that causes us to fail to parse the version:

PS D:\Dev\Google\dart-sdk\sdk\pkg\analysis_server> & 'D:\Tools\Dart\Latest (Bleeding Edge)\bin\dart' run test:test --version
Resolving dependencies in `D:\Dev\Google\dart-sdk\sdk`...
Downloading packages...
Got dependencies in `D:\Dev\Google\dart-sdk\sdk`.
Building package executable... (2.1s)
Built test:test.
1.30.0-wip

We should check only the last line.

Activity

  1. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Feb 26, 2026
  2. added this to the v3.130.0 milestone on Feb 26, 2026
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 bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions