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

Introduce single file report mode #2072

Merged
merged 3 commits into from Aug 24, 2023
Merged

Introduce single file report mode #2072

merged 3 commits into from Aug 24, 2023

Conversation

baev
Copy link
Member

@baev baev commented Aug 7, 2023

Context

The change introduces single file report mode. To generate the report in
single file mode run:

$ allure generate --single-file allure-results

fixes #755

Checklist

@gerganapecanova
Copy link

Is there a way to use this option in Allure Bamboo Plugin?

@biski
Copy link

biski commented Oct 12, 2023

I have some concerns about this single file mode. Our reports contain thousands of test cases (because we run them entire weekend) and sometimes have a lot of attachments and reports could be very big, like 5g. Will this single file mode still works? Could you still maintain current mode?

@baev
Copy link
Member Author

baev commented Oct 12, 2023

@biski, please create a discussion https://github.com/orgs/allure-framework/discussions, and I'll be happy to answer!

@karltiirik
Copy link

karltiirik commented Oct 18, 2023

@baev, this feature was very missed: useful for cases where you just want to send a report than can be opened in a browser (no CORS issues).

But, I'm missing the "Package" and "Behaviors" view when using the --single-file flag. Console shows 2 Uncaught ReferenceError: allure is not defined errors:
Kuvatõmmis 2023-10-18 232449
Kuvatõmmis 2023-10-18 232505
Kuvatõmmis 2023-10-18 232528

This doesn't happen when I don't use the --single-file flag. Let be know if I'm missing something or if I should formulate this into a bug report.

@anht3889
Copy link

@karltiirik I have the same issue with you when exporting single html file. Have you filed a bug report yet?

@baev
Copy link
Member Author

baev commented Dec 12, 2023

@karltiirik @anht3889 fixed via #2220

@vydra
Copy link

vydra commented Feb 2, 2024

How do we get history with --single-file option?

@baev
Copy link
Member Author

baev commented Feb 2, 2024

@vydra, it's not yet supported. Please follow https://github.com/orgs/allure-framework/discussions/2127 for the updates.

@princyyyy
Copy link

@baev how can i share allure-report to someone else in company on URL ?

@baev
Copy link
Member Author

baev commented Feb 6, 2024

@princyyyy please use our discussions to ask questions

In short, you need to build the reports on CI so that all team members have access to them.

https://github.com/orgs/allure-framework/discussions/2341#discussioncomment-8370575

@princyyyy
Copy link

@baev yes i know we can archived that through CI, but my requirement is to share report via link in pull request so reviewer can get to know testcases is getting pass, without CI

@Ajay-Jha
Copy link

Ajay-Jha commented Feb 18, 2024

@baev
Single file generated report not able to bind style.css correctly if we use custom-logo. Old command " allure serve allure-results" still picking the custom logo correctly.

Style_allure

@Ajay-Jha
Copy link

@baev , can you please guide me, how can i use custom logo with this feature

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

Successfully merging this pull request may close these issues.

Export Allure Report to a single HTML File
9 participants