4

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.

Goralight
  • 2,067
  • 6
  • 25
  • 40

2 Answers2

4

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.

Dmitry Baev
  • 2,270
  • 1
  • 14
  • 24
1

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

Frank Escobar
  • 648
  • 5
  • 15