nextest icon indicating copy to clipboard operation
nextest copied to clipboard

Support for showing the slowest N tests

Open nipunn1313 opened this issue 3 years ago • 1 comments

I see that here https://nexte.st/book/slow-tests.html - it is possible to set a limit for what is marked as slow. I think it would also be nice to show the slowest N (10?) tests without having to know the limit up front. This would be pretty easy to implement externally after #20 (just pipe to sort), but I bet it would look a lot nicer if internal.

nipunn1313 avatar Dec 29 '22 07:12 nipunn1313

Hi there --

Thanks for the feature request! This is currently not supported, and the way I'd like to add support for it is by logging previous runs and letting users replay them, show statistics about them and so on. For example:

cargo nextest run
cargo nextest replay slow-tests

However, that would be a big chunk of work that I don't expect to do any time soon.

Meanwhile, you could likely use the JUnit support along with some open source tooling that consumes them to build this out for yourself! You can also set the final-status-level config option to slow to print out slow tests.

sunshowers avatar Dec 29 '22 22:12 sunshowers