Skip to content

Is it possible for Run Test and Run Tests in VS Code to invoke nextest? #21137

@DavisVaughan

Description

@DavisVaughan

See also nextest-rs/nextest#2253 where I cross posted to nextest many months ago.

rust-analyzer has this nice little Run Tests button above a mod of tests:

Screenshot 2025-03-24 at 8 39 39 PM

It also has Run Test above a single test. When switching a project to nextest, most of the time Run Test still works, but often Run Tests will start to fail if you start taking advantage of nextest's one process per test feature, i.e. Run Tests will invoke some call to cargo test rather than nextest itself and your tests won't run in separate processes.

Have you all considered making the hook for Run Tests configurable in some way so that nextest could be invoked instead?

CC @sunshowers, I hope you don't mind me mentioning you here, feel free to ignore, but I thought you might want to be involved if there is movement here

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions