pytest-html
pytest-html copied to clipboard
Adding multilevel output folding
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:
PyCharm report:
Test Results - pytest_in_all_tests.zip
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 ?
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 !