nextest-rs / nextest

A next-generation test runner for Rust.
https://nexte.st
Apache License 2.0
2.11k stars 92 forks source link

Is there a way to prevent `cargo nextest list` from listing every individual file? #944

Open Kriskras99 opened 1 year ago

Kriskras99 commented 1 year ago

As the title indicates I was wondering if there's anyway to prevent cargo nextest list from listing every individual file? I have a few thousand (!) test files belonging to around 5 test functions. cargo nextest list lists every single one of them, which fills up the terminal and makes it impossible to find other tests. Is there a way to only show the function name as the test?

sunshowers commented 1 year ago

Hi! At the moment, no it's not. That seems like a deficiency, though, and I think one that should be fixed in nextest.

I think we can do something like:

If:

Then:

sunshowers commented 1 year ago

Note that you are going to run into https://github.com/nextest-rs/datatest-stable/issues/8 as the number of files grows. If you or someone else would like to fix it, help would be greatly appreciated!