pytest-dev / pytest-html

Plugin for generating HTML reports for pytest results
Other
702 stars 235 forks source link

Documentation should include sample reports #407

Open ssbarnea opened 3 years ago

ssbarnea commented 3 years ago

We should really produce some sample reports that exemplifies features and include them in the documentation.

This will allow us to easily test the visual effects of various changes that we are doing and compare them with previous version.

jkowalleck commented 3 years ago

which features should be showcased?

what else?

BeyondEvil commented 3 years ago

Dark mode, maybe? 🤔

jkowalleck commented 3 years ago

web browsers will switch to dark mode automatically depending on user's preferences.

BeyondEvil commented 3 years ago

web browsers will switch to dark mode automatically depending on user's preferences.

I meant more to show what it looks like in dark mode, meaning not a link to an actual report, but a screenshot.

ssbarnea commented 3 years ago

How about starting with one and adding others later? Even one report today is better than 10 tomorrow ;)

Lets not open the selenium box yet. I do see value but is too far a stretch and I am not sure who has the bandwidth to do it and maintain it. Just produce some example(s) and we can rely on user to evaluate it. We can later write a UI changes evaluation checklist: which browsers to test, dark/light, screen width.

My view on this is: see what you can do in half a day. If it takes more, maybe is too much.

Still, I would like to see one report for each theme we bundle, that being a great factor that can influence readability of the report.

If themes makes generation much harder we could look into making theme user selectable with a dropbox inside the report and avoid having to generate multiple reports for each theme. Still, that is another separated feature.

jkowalleck commented 3 years ago

i am currently preparing a demo_test for pytest & pytest-html to showcase all mentioned features. actually i'd like to have this feature to prevent issues like #408 while i'll be working on #383.

jkowalleck commented 3 years ago

i am currently preparing a demo_test for pytest & pytest-html to showcase all mentioned features. actually i wpuld like to have this feature to prevent issues like #408 while i'll be working on #383.

422 is a quick shot. actually it is not great at all. its okay.

issues i have with it:

but well, its a start.