allure2
allure2 copied to clipboard
How to disable open browser in allure-report?
Hi, I was working on custom automation framework and wanted to integrate with allure-report. Is there a way to stop allure-report command from automatically opening a browser? I wanted to listen to the server but open it inside of my electronJs app like a webpage.
allure generate
allure generate
it just generates the report from result. But it doesn't invoke the server. For example: When I run allure open, it opens the result in server like http://192.168.1.205:49915/index.html.
I wanted to have the same result without opening the browser. Let's say if I run allure open -no-browser it runs the server(and shows the address where it's running) but won't open any browser. something like here
Or how can I open generated report without allure open by using command line.
I'm looking for the same feature, where allure does not attempt to open browser.
I'm looking for the same feature, too.
allure-commandline-2.17.3.jar.zip
Attached is a recompiled version with the openbrowser implementation removed, based on version 2.17.3. After testing, replacing the file in the lib directory with the attachment, it is confirmed to work and does not call the system default browser.
However, because it was my first time compiling a java program, the compiled file size is particularly large. I hope someone can compile a normal version.
I would also like to deploy a HTTP server Docker container to host the Allure report.
But I also get the message Can not open browser because this capability is not supported on your platform. You can use the link below to open the report manually.
Please do not use allure serve & allure open commands to host Allure Reports somewhere. Those commands should be only used to open reports on the local machine.
Even on a local machine, the best option today is to use the --single-file option, generate a single file report, and open it without a web server.
allure generate command produces a static website. There is no need to have an additional Java process serving it for you.
For the docker environment, you can start with the following file.
FROM nginx
COPY /path/to/allure-report /var/share/nginx/html
(you can even use nginx:alpine)
For the electron — google "serve static files", you'll find plenty of the options available.