Skip to content

Test discovery flow is unusual/weird #17094

Open

Description

Testing #17055

  • get into configuring python tests
  • the 2nd and 3rd steps are about configuring the test folder and pattern
  • 😕 the use of quick pick is confusing esp for picking a workspace folder

I wonder if this can be solved different, like use the native file picker or a setting with a reasonable default

Activity

  1. chrisdias commented on Aug 26, 2021

    @chrisdias

    I found this list weird as well. What if I have tests in a file that don't follow the convention? I expected to see a list of files that were in my workspace, not a set of file patterns. Maybe its because the file pattern is bold and the description is grey, it makes it looks like files discovered in my workspace? Maybe just having the quick pick be the description would help? Not a blocker, but certainly made me stop and scratch my head.

  2. jrieken commented on Aug 27, 2021

    @jrieken
    Author

    Maybe its because the file pattern is bold

    Yeah, I didn't understand if those presented patterns are all patterns that can be used. Or is this a list of commonly used patterns and hides the complexity of real glob patterns

  3. roblourens commented on Sep 6, 2023

    @roblourens
    Member

    I might have been a little confused by the flow if we didn't just go through it in detail this morning 😁. From #21845

    additionally the button "configure tests" found on the test explorer would be changed so it routed the user to a menu of the launch config options for testing

    So in the new proposal, you wouldn't guide the user through picking the test folder/pattern? How do they know to configure that?

    I don't necessarily mind the quick pick options as they currently are, it's probably nicer than asking the user to type a glob pattern. I assume the suggested patterns are typical for python projects. I just have a couple suggestions

    • After I go through this flow, open the config file to the side so I can see what you added, and see that I can customize it
    • Or show a notification with a button to open the file- we do this for some other flows that generate configuration for the user, like adding an ssh host automatically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions