Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort + append? #170

Open
deser opened this issue Aug 3, 2023 · 1 comment
Open

Sort + append? #170

deser opened this issue Aug 3, 2023 · 1 comment

Comments

@deser
Copy link

deser commented Aug 3, 2023

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

@Hargne
Copy link
Owner

Hargne commented Aug 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants