pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

Adding multilevel output folding

Open lukjak opened this issue 4 years ago • 2 comments
trafficstars

Hello,

In case of hundreds/thousands cases executed in a single run, it is hard to navigate single table with all the output. Adding ability to collapse/expand not only the whole results table but also smaller groups would be very convenient. See attached example which is output from PyCharm's "Export test results to the file" command + screenshot of source file structure. I imagine that in the simplest form an option would cause adding to the result table rows with "Hide all/Show all (level name)" item. For example for the attached example there would be the following rows added in the relevant global table rows: "Hide all/Show all (package 1)" "Hide all/Show all (test_abc)" "Hide all/Show all (test_abc_1)" etc. Source structure: image PyCharm report: Test Results - pytest_in_all_tests.zip

lukjak avatar Dec 13 '20 12:12 lukjak

Thanks for the feature request @lukjak !

This is a recurring request in different forms, and it's a good one.

However, it requires quite a bit of refactoring.

I suggest we add this to our next-gen project.

What do you think @gnikonorov @ssbarnea ?

BeyondEvil avatar Dec 13 '20 13:12 BeyondEvil

I like it @BeyondEvil and agree it is best to work on this once we're on next-gen.

Thank you for filing this @lukjak !

gnikonorov avatar Dec 13 '20 15:12 gnikonorov