-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add Modern UI HTML Report to --html Option #2459
Conversation
Nice! Is it possible to make it respect dark/bright mode? Bright mode scares me :) In future PRs, you can add "fixes #issue-number" to the PR (or a commit message) to link (and auto-close) the issue. |
7a828ed
to
bbfc2b7
Compare
Good suggestion 👍 I added a flag |
Nice! But could you maybe use a choices parameter type instead of a string? https://docs.python.org/3/library/argparse.html#choices |
bbfc2b7
to
7f09b22
Compare
7f09b22
to
86b065a
Compare
I also added one more commit which will detect if a users browser prefers dark or light theme and will use this as the default for the report in headless mode, this way it is not necessary to set/be aware of the |
Perhaps we dont even need to add the option then? We already have too many options so the help text is kinda unreadable :) |
86b065a
to
a95578b
Compare
Yeah and now that I think of it, perhaps it even makes more sense this way, as the HTML file is something that could be passed around to multiple people and different people might have different preferences on the theme |
Nice! |
When using the
--html
option together with the--modern-ui
the modern report template will now be used--headless
option with both the old and new reportFixes #2458