Skip to content

Focusing tests #1450

@nohwnd

Description

@nohwnd

I really like the idea of focusing a single test, multiple tests or a block, and there was -Focus parameter on It and Describe for this. There were concerns about commiting -Focus into repo and I think they definitely make sense. I like the feature a lot but also struggled with comitting it into my repo once or twice.

I will remove the feature in #1379 and will re-introduce it later in similar fashion to *-PSBreakpoint, that way the focus is simple to use, and can become a code lense in VS (e.g. Pin test), and possibly get it's own window as Breakpoints have (if VSCode can easily be extended that way).

Focus already works on line filter, I just need to surface a reasonable api for this. It would also be a good idea to reduce the paths to run to only the files that are focused, which is not something I do now.

/fyi @splatteredbits @felixfbecker

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions