Allure reports to see historic trends

Siddharth Sonone picture Siddharth Sonone · May 16, 2018 · Viewed 12k times · Source

I am working on creating a Reports Dashboard for automated tests that run once in a day. I am using WebdriverIO and so far allure has been super helpful in building detailed reports.

I am using the allure command line command:

allure generate --clean ./allure-results  && allure open

to generate the reports, however I am not able to get my PREVIOUS results and my TRENDS tile is empty. History is also EMPTY

Is there any way I can store daily reports and filter by date and see them stacked against a particular day?

Answer

Eskignax picture Eskignax · May 24, 2018

Process to make Trend and History work:

Before generating the report, copy the history folder from your previous allure-report folder inside your current allure-results folder.

Therefor your new allure-report will have a new history folder that you need to save for the next day, and so on and so forth.