Skip to content

Add the ability to run tests for a folder to explorer context menu #4198

Closed

Description

@DanTup

"Run all tests in folder" / "Debug all tests in folder"

To match it, we should probably also rename "Start Debugging"/"Run without debugging" to include "tests" when on a test file.

@connor4312 before I do this, do you think it would make sense to have this in VS Code directly (that is, an option to "run tests in file" and "run tests in folder" in the explorer context menu, which just does the same as filtering to that file/folder in the Test Runner and running them)? I've had a few users ask how best to run tests from the Explorer (in Android Studio/IntelliJ, they can be run from the explorer tree like that).

Activity

  1. 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 4, 2022
  2. added this to the v3.52.0 milestone on Oct 4, 2022
  3. connor4312 commented on Oct 4, 2022

    @connor4312

    I think this is a good idea, and something I've wanted to do for a little while.

  4. DanTup commented on Oct 5, 2022

    @DanTup
    MemberAuthor

    Great - I've filed a VS Code issue at microsoft/vscode#162728 then. I'll hold off doing anything Dart-specific here in case that's something that might happen in the near-term (and if not, I may add something here in the meantime).

    Thanks!

  5. modified the milestones: v3.52.0, On Deck on Oct 5, 2022
  6. modified the milestones: On Deck, v3.96.0 on Aug 20, 2024
  7. DanTup commented on Aug 20, 2024

    @DanTup
    MemberAuthor

    This works now, VS Code added support for it natively:

    image

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 enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions