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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With