Skip to content

Add shortcut to run the current test (at cursor position) #12218

Closed
@simgunz

Description

@simgunz

While writing a new test, the test has to be run multiple times so it would be nice to have a shortcut to run the test we are working on (the one at the position of the cursor).

An alternative is a shortcut to run the last run test.

The extension Test Explorer has this option, but given that the native python extension already provides many shortcuts to run tests, it does not make sense to install another extension just for this feature.

See also:
https://stackoverflow.com/questions/43342733/shortcut-to-run-current-python-unit-test-in-vscode

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions