-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Having posted pytest-dev/pytest#13675 I remembered the existence of this plugin and thought I'd open a 'suggestion' kind of ticket here - in case there is little appetite to add this (aggregated/subtotal timings) to pytest itself, perhaps this plugin might be a good place for it seeing as it is already existing this area of functionality?
For example to enable grouped subtotals perhaps this plugin could add a new argument --pytest-durations-groupby
with options file
or class
which would then alter the output to show the top total duration of all the call/setup/teardown's that happened within each separate .py file (or unittest class).
In a large test suite this would make it much easier to identify groups of tests which, together, are slow, even if each individual test is pretty quick and does not show up in the top N.