Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Run All Tests' option off-screen when many test cases #17223

Closed
CoenraadS opened this issue May 13, 2024 · 0 comments · Fixed by #17228
Closed

'Run All Tests' option off-screen when many test cases #17223

CoenraadS opened this issue May 13, 2024 · 0 comments · Fixed by #17228
Labels
C-bug Category: bug

Comments

@CoenraadS
Copy link

CoenraadS commented May 13, 2024

rust-analyzer version: v0.3.1958

rustc version: rustc 1.78.0 (9b00956e5 2024-04-29)

editor or extension: VSCode 1.89.1

When having a test with many cases, it is impossible to run them all due to the length of the lens. It would be nice it 'Run All Tests' is the first lens option. Also the order of the lens doesn't follow the order of the cases.

#[cfg(test)]
mod test_example {
    use rstest::*;

    #[rstest]
    #[case(1)]
    #[case(2)]
    #[case(3)]
    #[case(4)]
    #[case(5)]
    #[case(6)]
    #[case(7)]
    #[case(8)]
    #[case(9)]
    #[case(10)]
    #[case(11)]
    #[case(12)]
    #[case(13)]
    #[case(14)]
    #[case(15)]
    #[case(16)]
    #[case(17)]
    #[case(18)]
    #[case(19)]
    #[case(20)]
    fn test(#[case] foo: i32) {}
}

image

@CoenraadS CoenraadS added the C-bug Category: bug label May 13, 2024
@bors bors closed this as completed in 52135cb May 14, 2024
lnicola pushed a commit to lnicola/rust that referenced this issue May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant