Relative Content

Tag Archive for pytestpython-3.11pytest-html

How to capture pytest durations statistics within the test report

I am using the durations options in the pytest commandline to extract information of the top 5 slowest tests. Below is the information that is printed in the console at the end of tests. The test results are outputted in an html or a junit-xml report. Is there a hook to capture the durations statistics in the html or junit-xml report?