Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allure serve command to update realtime and make use of the advanced features(trends, history, etc)

The way I am creating the Allure report is by creating the XMLs with the allure plugin for pytest, like so

pytest LoginTest.py --alluredir C:\Users\xxx\Desktop\Allure\xml

Here will generate a hand-full of XMLs and txt files. As expected.

Next I serve the Allure with these XMLs, like so.

allure serve C:\Users\xxx\Desktop\Allure\xml --port 9000

This then kicks off the Allure server and displays me the test results in the correct fashion and everything is great.

However, if I were to run the same test again and make it fail, for example - the server doesnt update automatically, I have to kill it and re-run the 2nd command. Surely there is a way for it to automatically notice new XMLs and update accordingly? Or am I missing something?

I also do not understand how to make use of the other features of Allure, (trends, history, etc). I have looked at Github, documentation, etc - and cant seem to find an answer to help me.

like image 927
Goralight Avatar asked Sep 02 '25 10:09

Goralight


2 Answers

There is no runtime report feature is available at the moment.

The right way to use history features is using one of Allure CI plugins (Jenkins/TeamCity/Bamboo). In case you need to use it locally all you need is copy history folder from previous report to allure-results and then generate the report as usual.

like image 104
Dmitry Baev Avatar answered Sep 11 '25 17:09

Dmitry Baev


You can use the docker container to see your reports automatically updated.

https://github.com/fescobar/allure-docker-service/tree/master/allure-docker-python-pytest-example

https://github.com/fescobar/allure-docker-service

like image 27
Frank Escobar Avatar answered Sep 11 '25 17:09

Frank Escobar