Skip to content

Add lenses for ginkgo to run specific tests #228

@vincepri

Description

@vincepri

If you have a question, please ask it on the #vscode or #vscode-go channels in Gophers Slack](https://invite.slack.golangbridge.org/messages/vscode).

Is your feature request related to a problem? Please describe.

Ginkgo is a widely used BDD testing framework, which is used to describe individual specs. Ginkgo also offers cli options that are added when you run go test which can be leveraged for lenses.

Describe the solution you'd like
Today, vscode offers a way to run individual go tests as shown in the picture below.

image

It'd be great to have the same functionality on each ginkgo-spec using its name as input to ginkgo.focus flag when running the go test command.

Describe alternatives you've considered
The only other way to run ginkgo individual tests today is to run the tests from the command line.

Additional context
Happy to help with coding a solution up given enough guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Go CompanionIssues relating to the Go Companion extensionNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.go-testissues related to go test support (test output, test explorer, ...)goplsgopls related issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    External

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions