Control visibility of test results sections by query param #399
Labels
enhancement
This issue/PR relates to a feature request.
feature
This issue/PR relates to a feature request.
Just like we can control collapsed test categories via query param (https://github.com/pytest-dev/pytest-html#display-options) would it also make sense to control whether test results sections are hidden or not (checkbox checked or not effectively) by query param? Something like:
?checked=Passed,XFailed,Skipped
The reason I am asking this is that it seems like this is nearly impossible to control before the page loads. We'd have to inject some JS that calls the "filter_tableI()" method for each section we want to check/uncheck or modify the to have the "hidden" attribute before the page is generated.
I understand we can wholesale not render elements for any section using the output hooks (https://github.com/pytest-dev/pytest-html#modifying-the-results-table) but that would remove the ability for anyone to see the results if they were interested in seeing them. We have test output with hundreds of passed/skipped outputs usually and only a few failed ones. It would be nice if all of those were hidden by default but still viewable if the user wanted to view them.
PR that did the original feature: #168
The text was updated successfully, but these errors were encountered: