Profiling your test suite?

Is there a way to see a report of how long each test takes to complete? e.g.


I'm thinking of how I would (hypothetically) go about trimming down the runtime of a test suite for a faster feedback cycle.

1 Like

You are looking for

cargo test -- -Zunstable-options --report-time
1 Like

Also you might find the following posts of mine helpful with respect to overall feedback loop optimization:


Thank you, I've already bookmarked some of your posts for that exact reason :slight_smile:

I originally went to the Cargo Book to find a flag exactly like --report-time, but didn't think to look in the Unstable Book.

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.