Skip to content

Allow running specific test case of a test table #2445

Open
@ofabricio

Description

@ofabricio

Related issues

Issue Work to be done
This issue Statically detect simple table-driven tests
#1602 Support "run at cursor" for entries in a table
#1734 Let the user manually enter a test or subtest name to execute

I'd like to suggest a feature that allows running a specific test case in a test table.

When the cursor is in a test case line, a run button gutter could appear allowing you to run that specific case. Or a new option on top of the test function (see image below).

I have tests with a lot of cases and when I have to focus in one to debug it I have either to comment all the other cases or separate that one in a new test function.

image

Metadata

Metadata

Assignees

Labels

FeatureRequestGo CompanionIssues relating to the Go Companion extensiongo-testissues related to go test support (test output, test explorer, ...)goplsgopls related issues

Type

No type

Projects

Status

External

Relationships

None yet

Development

No branches or pull requests

Issue actions