Unittest presents only total time spent on running all tests but does not present time spent on each test separately.
How to add timing of each test when using unittest?
PyCharm CE (free) provides a clean view of unittest
durations. It also helpfully aggregates by directory structure and file and allows you to sort by duration:
And as @horejsek mentioned, there's an issue for unittest
to add duration measurement with an open PR: https://github.com/python/cpython/pull/12271.