Sort + append?
Hey Guys. Im using append feature and now I want to use sort to show failed tests at the very top of the report.
It seems that sort is working within 1 report.
Is it possible to apply sort for all reports (including previously appended)?
Thanks
Hi, That could potentially be tricky to solve as the module only looks at the current result and simply appends it. The file it appends to can be any document of any sort, so there is no way for it to know if it follows any convention or not.
In order to make this possible, we would have to build or use some function that would be able to parse, extract and rearrange HTML elements, which seems like a daunting task as of now!
Another solution would be to redesign reporter in a way that we both extract/append to a (i.e) JSON with the test results that in the next step would be used to generate a HTML report from scratch each time. In this case we would have greater control over the document and could rearrange in whatever fashion we'd want.