Skip to content

Test configuration for all tests in directory does not allow debug mode #4742

Open
@helin24

Description

@helin24

Test scope is 'Test in file, filtered by name':
Screen Shot 2020-08-05 at 10 09 41 AM

Test scope is 'All in directory':
Screen Shot 2020-08-05 at 10 09 47 AM

More context on this issue

Why this happens

  • Using a test scope of directory means that running tests will be done through DefaultRunProgramRunner instead of FlutterTestRunner
  • This is because FlutterTestRunner returns false for directory tests for either run mode (run or debug)
  • There's no default runner for debugging, so that's why the debug button doesn't show up

What we'd like to have ideally

  • Both run and debug run through FlutterTestRunner (or other custom runner) so that we can use --start-paused and have debugging for directory tests

Implementation steps

  • Manage multiple observatory connections for one process handler (see FlutterTestRunner::runInDebugger and Connector class)
  • Similarly, allow multiple XDebugProcesss for an XDebugSession

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @helin24

        Issue actions

          Test configuration for all tests in directory does not allow debug mode · Issue #4742 · flutter/flutter-intellij