Content-Length: 280882 | pFad | https://github.com/flutter/flutter/issues/125993

62 Add a `flutter test` flag to pause the test on exit · Issue #125993 · flutter/flutter · GitHub
Skip to content

Add a flutter test flag to pause the test on exit #125993

@kenzieschmoll

Description

@kenzieschmoll

flutter test has a --start-paused flag that can be passed to pause the test on start and output a vm service URI for the test. This is useful for debugging a test with DevTools for example.

Sometimes there is also a need to pause the test on exit to inspect the end state (one example is to inspect the memory of the test isolate to track down leaks). There is a service extension to pause the test isolate after tests: ext.test.pauseAfterTests, but currently no flutter test flag to set its value. Some internal tools call this service extension after connecting to the test isolate's vm service, but it would be nice if this could also be accessed from CLI.

@christopherfujino

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/125993

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy