Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

tokio:test is not recognized as a test #756

@jafhueppe

Description

@jafhueppe

Hey there,

I'm writing a rust program which uses tokio for async functions. I wrote some tests for these async functions and need to annotate them with #[tokio:test] instead of #[test].
Because it's another annotation, the extension doesn't recognize it as a test, so the "Run test" text is missing.

Is it possible to add this annotation? It's pretty handy to run only a singe test with this clickable text

Minimal example

#[tokio:test]
async fn test_example() {
  let body = reqwest::get("https://www.rust-lang.org")
      .await?
      .text()
      .await?;

  println!("body = {:?}", body);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions