Link to test case in docs instead of using doc test

I would like to keep test cases just in tests module, then in docs comments, link to specific tests relevant to the APIs. I would like to have the generated docs can redirect user to the source code of test cases by clicking the links. How can it be achieved?
e.g.

/// description: ... [`test_hello`]
pub fn hello() {
}

#[cfg(test)]
mod tests {
   #[test]
   fn test_hello() { }
}
1 Like

This is not possible.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.