Skip to content

Let Rust analyzer show the Run Test | Debug buttons for each test case #29

Open
@t-moe

Description

@t-moe

This is related to rust-lang/rust-analyzer#17011 and can probably be fixed by emitting #[::core::prelude::v1::test] from my macros.

tokio test does this as well: https://github.com/tokio-rs/tokio/blob/a1acfd8c20475e8a878b012ac4aa90b361f004ae/tokio-macros/src/entry.rs#L365 )

Lets just hope that #[::core::prelude::v1::test] stays a no-op, when harness=false for that particular test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions